molecule.seg

NilSeg

object NilSeg extends Seg[Nothing] with Product with Serializable

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    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
  5. def +:[B](b: B): Seg[B]

    Prepend an message to this segment

    Prepend an message to this segment

    b

    the message

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

    Append an message to this segment

    Append an message to this segment

    b

    the message

    Definition Classes
    NilSegSeg
  7. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  9. final def asInstanceOf[T0]: T0

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

    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
  11. def canEqual(arg0: Any): Boolean

    Definition Classes
    NilSeg → Equals
  12. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. abstract def collect[B](pf: PartialFunction[Nothing, B]): Seg[B]

    [use case] Builds a new collection by applying a partial function to all messages of this segment on which the function is defined.

    [use case]

    Builds a new collection by applying a partial function to all messages of this segment on which the function is defined.

    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 partial function pf to each message on which it is defined and collecting the results. The order of the messages is preserved.

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

    Builds a new collection by applying a partial function to all messages of this segment on which the function is defined.

    Builds a new collection by applying a partial function to all messages of this segment on which the function is defined.

    B

    the message type of the returned collection.

    m

    a message typeclass used to poison messages not collected.

    returns

    a new segment resulting from applying the 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
  15. abstract def concat[B]: Seg[B]

    [use case] Return a segments that concatenates all the segments it contains.

    [use case]

    Return a segments that concatenates all the segments it contains.

    B

    the type of the messages of each traversable collection.

    returns

    a new segment resulting from concatenating all segments.

    Definition Classes
    Seg
  16. def concat[B](implicit asSeg: (Nothing) ⇒ Seg[B]): Seg[B]

    Return a segments that concatenates all the segments it contains.

    Return a segments that concatenates all the segments it contains.

    B

    the type of the messages of each traversable collection.

    asSeg

    an implicit conversion which asserts that the message type of this segment is a Seg.

    returns

    a new segment resulting from concatenating all segments.

    Definition Classes
    NilSegSeg
  17. def copyTo[B, That](builder: Builder[B, That]): Builder[B, That]

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

    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
  19. def dropRightWhile(p: (Nothing) ⇒ Boolean)(implicit m: Message[Nothing]): Seg[Nothing]

    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
  20. def dropWhile(p: (Nothing) ⇒ Boolean)(implicit m: Message[Nothing]): Seg[Nothing]

    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
  21. final def eq(arg0: AnyRef): Boolean

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

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

    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
  24. def filter(p: (Nothing) ⇒ Boolean)(implicit m: Message[Nothing]): molecule.seg.NilSeg.type

    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
  25. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. abstract def flatMap[B](f: (Nothing) ⇒ Seg[B]): Seg[B]

    [use case] Builds a new collection by applying a function to all messages of this segment and concatenating the results.

    [use case]

    Builds a new collection by applying a function to all messages of this segment and concatenating the results.

    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
    Seg
  27. def flatMap[B](f: (Nothing) ⇒ Seg[B]): Seg[Nothing]

    Builds a new collection by applying a function to all messages of this segment and concatenating the results.

    Builds a new collection by applying a function to all messages of this segment and concatenating the results.

    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
  28. abstract def flatMapTraversable[B](f: (Nothing) ⇒ Traversable[B]): Seg[B]

    [use case] Builds a new collection by applying a function to all messages of this segment and concatenating the results.

    [use case]

    Builds a new collection by applying a function to all messages of this segment and concatenating the results.

    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
    Seg
  29. def flatMapTraversable[B](f: (Nothing) ⇒ Traversable[B]): Seg[Nothing]

    Builds a new collection by applying a function to all messages of this segment and concatenating the results.

    Builds a new collection by applying a function to all messages of this segment and concatenating the results.

    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
  30. abstract def flatten[B]: Seg[B]

    [use case] Converts this segment of traversable collections into a segment in which all message collections are concatenated.

    [use case]

    Converts this segment of traversable collections into a segment in which all message collections are concatenated.

    B

    the type of the messages of each traversable collection.

    returns

    a new segment resulting from concatenating all message.

    Definition Classes
    Seg
  31. def flatten[B](implicit asTraversable: (Nothing) ⇒ Traversable[B]): Seg[B]

    Converts this segment of traversable collections into a segment in which all message collections are concatenated.

    Converts this segment of traversable collections into a segment in which all message collections are concatenated.

    B

    the type of the messages of each traversable collection.

    asTraversable

    an implicit conversion which asserts that the message type of this segment is a Traversable.

    returns

    a new segment resulting from concatenating all message.

    Definition Classes
    NilSegSeg
  32. def foldLeft[B](z: B)(f: (B, Nothing) ⇒ B): B

    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
  33. abstract def foreach(f: (Nothing) ⇒ Unit): Unit

    [use case] Applies a function f to all messages of this segments.

    [use case]

    Applies a function f to all messages of this segments.

    f

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

    Definition Classes
    Seg
  34. def foreach[U](f: (Nothing) ⇒ U): Unit

    Applies a function f to all messages of this segments.

    Applies a function f to all messages of this segments.

    U

    the type parameter describing the result of function f. This result will always be ignored. Typically U is Unit, but this is not necessary.

    f

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

    Definition Classes
    NilSegSeg
  35. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    Seg
  37. final def hashCode(): Int

    Definition Classes
    NilSeg → AnyRef → Any
  38. def head: Nothing

    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.

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

  40. def init: Seg[Nothing]

    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.

  41. def isEmpty: Boolean

    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
  42. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  43. def iterator: Iterator[Nothing]

  44. def last: Nothing

    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.

  45. def length: Int

    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
  46. abstract def map[B](f: (Nothing) ⇒ B): Seg[B]

    [use case] Builds a new collection by applying a function to all messages of this segment.

    [use case]

    Builds a new collection by applying a function to all messages of this segment.

    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
    Seg
  47. def map[B](f: (Nothing) ⇒ B): Seg[Nothing]

    Builds a new collection by applying a function to all messages of this segment.

    Builds a new collection by applying a function to all messages of this segment.

    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
  48. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  49. final def notify(): Unit

    Definition Classes
    AnyRef
  50. final def notifyAll(): Unit

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

    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
  52. def pop(): (VSeg[Nothing], Seg[Nothing])

    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
  53. def productArity: Int

    Definition Classes
    NilSeg → Product
  54. def productElement(arg0: Int): Any

    Definition Classes
    NilSeg → Product
  55. def productIterator: Iterator[Any]

    Definition Classes
    Product
  56. def productPrefix: String

    Definition Classes
    NilSeg → Product
  57. def readResolve(): AnyRef

    Attributes
    protected
  58. def scanLeft[B](z: B)(op: (B, Nothing) ⇒ B): Seg[B]

    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
  59. final def size: Int

    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()
  60. def smap[S, B](z: S)(f: (S, Nothing) ⇒ (S, B)): (S, Seg[B])

    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
  61. def span(p: (Nothing) ⇒ Boolean): (molecule.seg.NilSeg.type, molecule.seg.NilSeg.type)

    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
  62. def splitAt(n: Int): (molecule.seg.NilSeg.type, molecule.seg.NilSeg.type)

    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
  63. def step[B](empty: ⇒ B, more: (Nothing, Seg[Nothing]) ⇒ B): B

    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
  64. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  65. def tail: Seg[Nothing]

    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.

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

  67. def toString(): String

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

    Copies values of this segment to a vector.

    Copies values of this segment to a vector.

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

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

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

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

    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

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Seg[Nothing]

Inherited from AnyRef

Inherited from Any