Object

molecule.seg

NilSeg

Related Doc: package seg

Permalink

object NilSeg extends Seg[Nothing] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Seg[Nothing], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NilSeg
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Seg
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++[B](seg: Seg[B]): Seg[B]

    Permalink

    Append a segment to this segment

    Append a segment to this segment

    Complexity is O(lmin) effective, where lmin is the length of the smallest segment.

    seg

    the segment

    Definition Classes
    NilSegSeg
  4. def +:[B](b: B): Seg[B]

    Permalink

    Prepend an message to this segment

    Prepend an message to this segment

    b

    the message

    Definition Classes
    NilSegSeg
  5. def :+[B](b: B): Seg[B]

    Permalink

    Append an message to this segment

    Append an message to this segment

    b

    the message

    Definition Classes
    NilSegSeg
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def break(p: (Nothing) ⇒ Boolean): (Seg[Nothing], Seg[Nothing])

    Permalink

    Split a collection at the message that satisfies the predicate.

    Split a collection at the message that satisfies the predicate.

    p

    the test predicate

    returns

    a pair consisting of the longest prefix of this segment whose messages do not satisfy p, and the rest of this segment.

    Definition Classes
    Seg
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def collect[B](pf: PartialFunction[A, B]): Seg[B]

    Permalink

    [use case]

    [use case]
    B

    the message type of the returned collection.

    pf

    the partial function which filters and maps the segment.

    returns

    a new segment resulting from applying the given partial function pf to each message on which it is defined and collecting the results. The order of the messages is preserved.

    Definition Classes
    NilSegSeg
    Full Signature

    def collect[B](f: PartialFunction[Nothing, B])(implicit m: Message[Nothing]): Seg[B]

  11. def concat[B]: Seg[B]

    Permalink

    [use case]

    [use case]
    B

    the type of the messages of each traversable collection.

    returns

    a new segment resulting from concatenating all segments.

    Definition Classes
    NilSegSeg
    Full Signature

    def concat[B](implicit asSeg: (Nothing) ⇒ Seg[B]): Seg[B]

  12. def copyTo[B, That](builder: Builder[B, That]): Builder[B, That]

    Permalink
    Definition Classes
    NilSegSeg
  13. def drop(n: Int)(implicit m: Message[Nothing]): Seg[Nothing]

    Permalink

    Drops n elements from the head of this segment.

    Drops n elements from the head of this segment.

    n

    The number of elements to drop.

    m

    A message typeclass used to poison messages dropped.

    returns

    a segment whose n first elements have been dropped.

    Definition Classes
    NilSegSeg
  14. def dropRightWhile(p: (Nothing) ⇒ Boolean)(implicit m: Message[Nothing]): Seg[Nothing]

    Permalink

    Drops longest suffix of messages that satisfy a predicate.

    Drops longest suffix of messages that satisfy a predicate.

    p

    The predicate used to test messages.

    m

    A message typeclass used to poison messages dropped.

    returns

    the longest prefix of this segment whose first message does not satisfy the predicate p.

    Definition Classes
    NilSegSeg
  15. def dropWhile(p: (Nothing) ⇒ Boolean)(implicit m: Message[Nothing]): Seg[Nothing]

    Permalink

    Drops longest prefix of messages that satisfy a predicate.

    Drops longest prefix of messages that satisfy a predicate.

    p

    The predicate used to test messages.

    m

    A message typeclass used to poison messages dropped.

    returns

    the longest suffix of this segment whose first message does not satisfy the predicate p.

    Definition Classes
    NilSegSeg
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def exists(p: (Nothing) ⇒ Boolean): Boolean

    Permalink

    Tests whether a predicate holds for some of the messages of this segment.

    Tests whether a predicate holds for some of the messages of this segment.

    p

    the predicate used to test messages.

    returns

    true if the given predicate p holds for some of the messages of this segment, otherwise false.

    Definition Classes
    NilSegSeg
  19. def filter(p: (Nothing) ⇒ Boolean)(implicit m: Message[Nothing]): NilSeg.type

    Permalink

    Selects all messages of this segment which satisfy a predicate.

    Selects all messages of this segment which satisfy a predicate.

    p

    the predicate used to test messages.

    m

    a message typeclass used to poison messages filtered out (i.e. messages that do not satisfy p).

    returns

    a new segment consisting of all messages of this segment that satisfy the given predicate p. Their order may not be preserved.

    Definition Classes
    NilSegSeg
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def flatMap[B](f: (A) ⇒ Seg[B]): Seg[B]

    Permalink

    [use case]

    [use case]
    B

    the message type of the returned collection.

    f

    the function to apply to each message.

    returns

    a new segment resulting from applying the given collection-valued function f to each message of this segment and concatenating the results.

    Definition Classes
    NilSegSeg
    Full Signature

    def flatMap[B](f: (Nothing) ⇒ Seg[B]): Seg[Nothing]

  22. def flatMapTraversable[B](f: (A) ⇒ Traversable[B]): Seg[B]

    Permalink

    [use case]

    [use case]
    B

    the message type of the returned collection.

    f

    the function to apply to each message.

    returns

    a new segment resulting from applying the given collection-valued function f to each message of this segment and concatenating the results.

    Definition Classes
    NilSegSeg
    Full Signature

    def flatMapTraversable[B](f: (Nothing) ⇒ Traversable[B]): Seg[Nothing]

  23. def flatten[B]: Seg[B]

    Permalink

    [use case]

    [use case]
    B

    the type of the messages of each traversable collection.

    returns

    a new segment resulting from concatenating all message.

    Definition Classes
    NilSegSeg
    Full Signature

    def flatten[B](implicit asTraversable: (Nothing) ⇒ Traversable[B]): Seg[B]

  24. def foldLeft[B](z: B)(f: (B, Nothing) ⇒ B): B

    Permalink

    Applies a binary operator to a start value and all messages of this segment, going left to right.

    Applies a binary operator to a start value and all messages of this segment, going left to right.

    B

    the result type of the binary operator.

    z

    the start value.

    returns

    the result of inserting op between consecutive messages of this segment, going left to right with the start value z on the left:

    op(...op(z, x,,1,,), x,,2,,, ..., x,,n,,)

    where x1, ..., xn are the messages of this segment.

    Definition Classes
    NilSegSeg
  25. def foreach(f: (A) ⇒ Unit): Unit

    Permalink

    [use case]

    [use case]
    f

    the function that is applied for its side-effect to every message. The result of function f is discarded.

    Definition Classes
    NilSegSeg
    Full Signature

    def foreach[U](f: (Nothing) ⇒ U): Unit

  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  27. def groupBy[K](f: (Nothing) ⇒ K): Map[K, Seg[Nothing]]

    Permalink
    Definition Classes
    Seg
  28. def head: Nothing

    Permalink

    Selects the first message of this segment.

    Selects the first message of this segment.

    returns

    the first message of this segment.

    Definition Classes
    NilSegSeg
    Exceptions thrown

    `NoSuchmessageException` if the segment is empty.

  29. def indexWhere(p: (Nothing) ⇒ Boolean): Int

    Permalink
  30. def init: Seg[Nothing]

    Permalink

    Selects all messages except the last.

    Selects all messages except the last.

    returns

    a segment consisting of all messages of this segment except the last one.

    Definition Classes
    NilSegSeg
    Exceptions thrown

    `UnsupportedOperationException` if the segment is empty.

  31. def isEmpty: Boolean

    Permalink

    Tests whether this segment is empty.

    Tests whether this segment is empty.

    returns

    true if the segment contain no messages, false otherwise.

    Definition Classes
    NilSegSeg
  32. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  33. def iterator: Iterator[Nothing]

    Permalink
  34. def last: Nothing

    Permalink

    Selects all messages except the first.

    Selects all messages except the first.

    returns

    a segment consisting of all messages of this segment except the first one.

    Definition Classes
    NilSegSeg
    Exceptions thrown

    `UnsupportedOperationException` if the segment is empty.

  35. def length: Int

    Permalink

    The length of the segment.

    The length of the segment.

    Note: xs.length and xs.size yield the same result.

    returns

    the number of messages in this segment.

    Definition Classes
    NilSegSeg
  36. def map[B](f: (A) ⇒ B): Seg[B]

    Permalink

    [use case]

    [use case]
    B

    the message type of the returned collection.

    f

    the function to apply to each message.

    returns

    a new segment resulting from applying the given function f to each message of this segment and collecting the results.

    Definition Classes
    NilSegSeg
    Full Signature

    def map[B](f: (Nothing) ⇒ B): Seg[Nothing]

  37. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  38. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. def poison(signal: Signal)(implicit m: Message[Nothing]): Unit

    Permalink

    Poison all messages in this segment

    Poison all messages in this segment

    m

    a message typeclass used to poison every message in this segment.

    Definition Classes
    Seg
  41. def pop(): (VSeg[Nothing], Seg[Nothing])

    Permalink

    Returns a tuple containing the head of this segment as a value segment and the tail of the segment.

    Returns a tuple containing the head of this segment as a value segment and the tail of the segment.

    returns

    a tuple containing the head of this segment as a value segment and the tail of the segment.

    Definition Classes
    NilSegSeg
  42. def scanLeft[B](z: B)(op: (B, Nothing) ⇒ B): Seg[B]

    Permalink

    Produces a collection containing cummulative results of applying the operator going left to right.

    Produces a collection containing cummulative results of applying the operator going left to right.

    B

    the type of the messages in the resulting collection

    z

    the initial value

    op

    the binary operator applied to the intermediate result and the message

    returns

    a segment with the intermediate results, incuding the initial value.

    Definition Classes
    NilSegSeg
  43. final def size: Int

    Permalink

    The size of the segment.

    The size of the segment.

    Note: xs.length and xs.size yield the same result.

    returns

    the number of messages in this segment.

    Definition Classes
    Seg
    Annotations
    @inline()
  44. def smap[S, B](z: S)(f: (S, Nothing) ⇒ (S, B)): (S, Seg[B])

    Permalink

    Produces a collection containing cummulative results of applying the operator going left to right.

    Produces a collection containing cummulative results of applying the operator going left to right.

    B

    the type of the messages in the resulting collection

    z

    the initial state

    returns

    a segment with the intermediate results.

    Definition Classes
    NilSegSeg
  45. def span(p: (Nothing) ⇒ Boolean): (NilSeg.type, NilSeg.type)

    Permalink

    Splits this segment into a prefix/suffix pair according to a predicate.

    Splits this segment into a prefix/suffix pair according to a predicate.

    Note: c span p is equivalent to (but possibly more efficient than) (c takeWhile p, c dropWhile p), provided the evaluation of the predicate p does not cause any side-effects.

    p

    the test predicate

    returns

    a pair consisting of the longest prefix of this segment whose messages all satisfy p, and the rest of this segment.

    Definition Classes
    NilSegSeg
  46. def splitAt(n: Int): (NilSeg.type, NilSeg.type)

    Permalink

    Splits this segment into two at a given position.

    Splits this segment into two at a given position. Note: c splitAt n is equivalent to (but possibly more efficient than) (c take n, c drop n).

    n

    the position at which to split.

    returns

    a pair of segments consisting of the first n messages of this segment, and the other messages.

    Definition Classes
    NilSegSeg
  47. def step[B](empty: ⇒ B, more: (Nothing, Seg[Nothing]) ⇒ B): B

    Permalink

    Catamorphism.

    Catamorphism.

    B

    the return type of the arguments.

    empty

    the value returned if the segment is empty.

    more

    the function applied to the head and the tail of the segment if it is not empty.

    returns

    the value returned by 'empty' or 'more' depending on if the segment is empty or not.

    Definition Classes
    NilSegSeg
  48. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  49. def tail: Seg[Nothing]

    Permalink

    Selects all messages except the first.

    Selects all messages except the first.

    returns

    a segment consisting of all messages of this segment except the first one.

    Definition Classes
    NilSegSeg
    Exceptions thrown

    `UnsupportedOperationException` if the segment is empty.

  50. def takeWhile(p: (Nothing) ⇒ Boolean): Seg[Nothing]

    Permalink
  51. def toString(): String

    Permalink
    Definition Classes
    NilSeg → AnyRef → Any
  52. def toVector: Vector[Nothing]

    Permalink

    Copies values of this segment to a vector.

    Copies values of this segment to a vector.

    Definition Classes
    NilSegSeg
  53. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. def zip[B](seg: Seg[B]): (Seg[(Nothing, B)], Option[Either[Seg[Nothing], Seg[B]]])

    Permalink

    Returns a pair containing:

    Returns a pair containing:

    • the segment formed from this segment and another segment by combining corresponding elements in pairs.
    • An optional segment containing the remaining elements if one of the two segments is longer than the other.
    B

    the type of the second half of the returned pairs

    returns

    a new segment containing pairs consisting of corresponding elements of this segment and seg and an optional segment containing the remaining elements if one of the two segments is longer than the other

    Definition Classes
    NilSegSeg

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Seg[Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped