scalaz.stream

process1

trait process1 extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. process1
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
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. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  7. def awaitOption[I]: Process1[I, Option[I]]

    Await a single value, returning None if the input has been exhausted.

  8. def buffer[I](n: Int): Process1[I, I]

    Behaves like the identity process, but requests n elements at a time from its input.

  9. def bufferAll[I]: Process1[I, I]

    Behaves like the identity process, but batches all output into a single Emit.

  10. def bufferBy[I](f: (I) ⇒ Boolean): Process1[I, I]

    Behaves like the identity process, but requests elements from its input in blocks that end whenever the predicate switches from true to false.

  11. def chunk[I](n: Int): Process1[I, Vector[I]]

    Groups inputs into chunks of size n.

    Groups inputs into chunks of size n. The last chunk may have size less then n, depending on the number of elements in the input.

  12. def chunkAll[I]: Process1[I, Vector[I]]

    Collects up all output of this Process1 into a single Emit.

  13. def chunkBy[I](f: (I) ⇒ Boolean): Process1[I, Vector[I]]

    Like chunk, but emits a chunk whenever the predicate switches from true to false.

  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def collect[I, I2](pf: PartialFunction[I, I2]): Process1[I, I2]

    Like collect on scala collection.

    Like collect on scala collection. Builds a new process by applying a partial function to all elements of this process on which the function is defined.

    Elements, for which the partial function is not defined are filtered out from new process

  16. def drop[I](n: Int): Process1[I, I]

    Skips the first n elements of the input, then passes through the rest.

  17. def dropWhile[I](f: (I) ⇒ Boolean): Process1[I, I]

    Skips elements of the input while the predicate is true, then passes through the remaining inputs.

  18. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  20. def feed[I, O](i: Seq[I])(p: Process1[I, O]): Process1[I, O]

    Feed a sequence of inputs to a Process1.

  21. def feed1[I, O](i: I)(p: Process1[I, O]): Process1[I, O]

    Feed a single input to a Process1.

  22. def filter[I](f: (I) ⇒ Boolean): Process1[I, I]

    Skips any elements of the input not matching the predicate.

  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def find[I](f: (I) ⇒ Boolean): Process1[I, I]

    Skips any elements not satisfying predicate and when found, will emit that element and terminate

  25. def fold[A, B](z: B)(f: (B, A) ⇒ B): Process1[A, B]

    Process1 form of List.fold.

    Process1 form of List.fold. Folds the elements of this Process using the specified associative binary operator.

    Unlike List.fold the order is always from the left side, i.e. it will always honor order of A.

    If Process of A is empty, it will just emit z and terminate

    Process(1,2,3,4) |> fold(0)(_ + _) == Process(10)

  26. def fold1[A](f: (A, A) ⇒ A): Process1[A, A]

    Process1 form of List.reduce.

    Process1 form of List.reduce.

    Reduces the elements of this Process using the specified associative binary operator.

    Process(1,2,3,4) |> reduce(_ + _) == Process(10) Process(1) |> reduce(_ + _) == Process(1) Process() |> reduce(_ + _) == Process()

  27. def fold1Map[A, B](f: (A) ⇒ B)(implicit M: Monoid[B]): Process1[A, B]

    Like fold1 only uses f to map A to B and uses Monoid M or associative operation

  28. def fold1Monoid[A](implicit M: Semigroup[A]): Process1[A, A]

    alias for reduceMonoid

  29. def foldMap[A, B](f: (A) ⇒ B)(implicit M: Monoid[B]): Process1[A, B]

    Like fold only uses f to map A to B and uses Monoid M or associative operation

  30. def foldMonoid[A](implicit M: Monoid[A]): Process1[A, A]

    Like fold but uses Monoid for folding operation

  31. def foldSemigroup[A](implicit M: Semigroup[A]): Process1[A, A]

    alias for reduceSemigroup

  32. def forall[I](f: (I) ⇒ Boolean): Process1[I, Boolean]

    Emits a single true value if all input matches the predicate.

    Emits a single true value if all input matches the predicate. Halts with false as soon as a non-matching element is received.

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

    Definition Classes
    AnyRef → Any
  34. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  35. def id[I]: Process1[I, I]

    Repeatedly echo the input; satisfies x |> id == x and id |> x == x.

  36. def init[I](head: I*): Process1[I, I]

    Emit the given values, then echo the rest of the input.

  37. def intersperse[A](separator: A): Process1[A, A]

    Add separator between elements of the input.

    Add separator between elements of the input. For example, Process(1,2,3,4) |> intersperse(0) == Process(1,0,2,0,3,0,4).

  38. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  39. def last[I]: Process1[I, I]

    Skip all but the last element of the input.

  40. def lastOr[I](i: ⇒ I): Process1[I, I]

    Skip all but the last element of the input.

    Skip all but the last element of the input. This Process will always emit exactly one value; If the input is empty, i is emitted.

  41. def lift[I, O](f: (I) ⇒ O): Process1[I, O]

    Transform the input using the given function, f.

  42. def liftL[A, B, C](p: Process1[A, B]): Process1[\/[A, C], \/[B, C]]

    Transform p to operate on the left hand side of an \/, passing through any values it receives on the right.

    Transform p to operate on the left hand side of an \/, passing through any values it receives on the right. Note that this halts whenever p halts.

  43. def liftR[A, B, C](p: Process1[B, C]): Process1[\/[A, B], \/[A, C]]

    Transform p to operate on the right hand side of an \/, passing through any values it receives on the left.

    Transform p to operate on the right hand side of an \/, passing through any values it receives on the left. Note that this halts whenever p halts.

  44. def multiplex[I, I2, O](chan1: Process1[I, O], chan2: Process1[I2, O]): Process1[\/[I, I2], O]

    Split the input and send to either chan1 or chan2, halting when either branch halts.

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

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

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

    Definition Classes
    AnyRef
  48. def record[I, O](p: Process1[I, O]): Process1[I, (Seq[O], Process1[I, O])]

    Record evaluation of p, emitting the current state along with the ouput of each step.

  49. def reduce[A](f: (A, A) ⇒ A): Process1[A, A]

    Process1 form of List.reduce.

    Process1 form of List.reduce.

    Reduces the elements of this Process using the specified associative binary operator.

    Process(1,2,3,4) |> reduce(_ + _) == Process(10) Process(1) |> reduce(_ + _) == Process(1) Process() |> reduce(_ + _) == Process()

    Unlike List.reduce will not fail when Process is empty.

  50. def reduceMap[A, B](f: (A) ⇒ B)(implicit M: Monoid[B]): Process1[A, B]

    Like reduce only uses f to map A to B and uses Monoid M or associative operation

  51. def reduceMonoid[A](implicit M: Semigroup[A]): Process1[A, A]

    Like reduce but uses Monoid for reduce operation

  52. def reduceSemigroup[A](implicit M: Semigroup[A]): Process1[A, A]

    Like reduce but uses Semigroup associative operation

  53. def rethrow[A]: Process1[\/[Throwable, A], A]

    Throws any input exceptions and passes along successful results.

  54. def scan[A, B](z: B)(f: (B, A) ⇒ B): Process1[A, B]

    Similar to List.

    Similar to List.scan. Produces a process of B containing cumulative results of applying the operator to Process of A. It will always emit z, even when the Process of A is empty

  55. def scan1[A](f: (A, A) ⇒ A): Process1[A, A]

    Similar to scan, but unlike it it won't emit the z even when there is no input of A.

    Similar to scan, but unlike it it won't emit the z even when there is no input of A.

    Process(1,2,3,4) |> scan1(_ + _) == Process(1,3,6,10) Process(1) |> scan1(_ + _) == Process(1) Process() |> scan1(_ + _) == Process()

  56. def scan1Map[A, B](f: (A) ⇒ B)(implicit M: Monoid[B]): Process1[A, B]

    Like scan1 only uses f to map A to B and uses Monoid M or associative operation

  57. def scan1Monoid[A](implicit M: Monoid[A]): Process1[A, A]

    Like scan1 but uses Monoid for associative operation

  58. def scanMap[A, B](f: (A) ⇒ B)(implicit M: Monoid[B]): Process1[A, B]

    Like scan only uses f to map A to B and uses Monoid M or associative operation

  59. def scanMonoid[A](implicit M: Monoid[A]): Process1[A, A]

    Like scan but uses Monoid for associative operation

  60. def scanSemigroup[A](implicit M: Semigroup[A]): Process1[A, A]

    Like scan1 but uses Semigroup for associative operation

  61. def skip: Process1[Any, Nothing]

    Reads a single element of the input, emits nothing, then halts.

  62. def split[I](f: (I) ⇒ Boolean): Process1[I, Vector[I]]

    Break the input into chunks where the delimiter matches the predicate.

    Break the input into chunks where the delimiter matches the predicate. The delimiter does not appear in the output. Two adjacent delimiters in the input result in an empty chunk in the output.

  63. def splitOn[I](i: I)(implicit arg0: Equal[I]): Process1[I, Vector[I]]

    Break the input into chunks where the input is equal to the given delimiter.

    Break the input into chunks where the input is equal to the given delimiter. The delimiter does not appear in the output. Two adjacent delimiters in the input result in an empty chunk in the output.

  64. def stripNone[A]: Process1[Option[A], A]

    Remove any None inputs.

  65. def sum[N](implicit N: Numeric[N]): Process1[N, N]

    Emit a running sum of the values seen so far.

    Emit a running sum of the values seen so far. The first value emitted will be the first number seen (not 0). The length of the output Process always matches the length of the input Process.

  66. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  67. def take[I](n: Int): Process1[I, I]

    Passes through n elements of the input, then halts.

  68. def takeThrough[I](f: (I) ⇒ Boolean): Process1[I, I]

    Like takeWhile, but emits the first value which tests false.

  69. def takeWhile[I](f: (I) ⇒ Boolean): Process1[I, I]

    Passes through elements of the input as long as the predicate is true, then halts.

  70. def terminated[A]: Process1[A, Option[A]]

    Wraps all inputs in Some, then outputs a single None before halting.

  71. def toString(): String

    Definition Classes
    AnyRef → Any
  72. val utf8Encode: Process1[String, Array[Byte]]

    Convert String inputs to UTF-8 encoded byte arrays.

  73. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. def window[I](n: Int): Process1[I, Vector[I]]

    Outputs a sliding window of size n onto the input.

Inherited from AnyRef

Inherited from Any

Ungrouped