Await a single value, returning None if the input has been exhausted.
Await a single value, returning None if the input has been exhausted.
Behaves like the identity process, but requests n elements at a time from its input.
Behaves like the identity process, but requests n elements at a time from its input.
Behaves like the identity process, but batches all output into a single Emit.
Behaves like the identity process, but batches all output into a single Emit.
Behaves like the identity process, but requests elements from its input in blocks that end whenever the predicate switches from true to false.
Behaves like the identity process, but requests elements from its input in blocks that end whenever the predicate switches from true to false.
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.
Collects up all output of this Process1 into a single Emit.
Collects up all output of this Process1 into a single Emit.
Like chunk, but emits a chunk whenever the predicate switches from
true to false.
Like chunk, but emits a chunk whenever the predicate switches from
true to false.
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
Skips the first n elements of the input, then passes through the rest.
Skips the first n elements of the input, then passes through the rest.
Skips elements of the input while the predicate is true, then passes through the remaining inputs.
Skips elements of the input while the predicate is true, then passes through the remaining inputs.
Feed a sequence of inputs to a Process1.
Feed a sequence of inputs to a Process1.
Feed a single input to a Process1.
Feed a single input to a Process1.
Skips any elements of the input not matching the predicate.
Skips any elements of the input not matching the predicate.
Skips any elements not satisfying predicate and when found, will emit that element and terminate
Skips any elements not satisfying predicate and when found, will emit that element and terminate
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)
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()
Like fold1 only uses f to map A to B and uses Monoid M or associative operation
Like fold1 only uses f to map A to B and uses Monoid M or associative operation
alias for reduceMonoid
alias for reduceMonoid
Like fold only uses f to map A to B and uses Monoid M or associative operation
Like fold only uses f to map A to B and uses Monoid M or associative operation
Like fold but uses Monoid for folding operation
Like fold but uses Monoid for folding operation
alias for reduceSemigroup
alias for reduceSemigroup
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.
Repeatedly echo the input; satisfies x |> id == x and id |> x == x.
Repeatedly echo the input; satisfies x |> id == x and id |> x == x.
Emit the given values, then echo the rest of the input.
Emit the given values, then echo the rest of the input.
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).
Skip all but the last element of the input.
Skip all but the last element of the input.
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.
Transform the input using the given function, f.
Transform the input using the given function, f.
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.
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.
Split the input and send to either chan1 or chan2, halting when
either branch halts.
Split the input and send to either chan1 or chan2, halting when
either branch halts.
Record evaluation of p, emitting the current state along with the ouput of each step.
Record evaluation of p, emitting the current state along with the ouput of each step.
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.
Like reduce only uses f to map A to B and uses Monoid M or associative operation
Like reduce only uses f to map A to B and uses Monoid M or associative operation
Like reduce but uses Monoid for reduce operation
Like reduce but uses Monoid for reduce operation
Like reduce but uses Semigroup associative operation
Like reduce but uses Semigroup associative operation
Throws any input exceptions and passes along successful results.
Throws any input exceptions and passes along successful results.
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
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()
Like scan1 only uses f to map A to B and uses Monoid M or associative operation
Like scan1 only uses f to map A to B and uses Monoid M or associative operation
Like scan1 but uses Monoid for associative operation
Like scan1 but uses Monoid for associative operation
Like scan only uses f to map A to B and uses Monoid M or associative operation
Like scan only uses f to map A to B and uses Monoid M or associative operation
Like scan but uses Monoid for associative operation
Like scan but uses Monoid for associative operation
Like scan1 but uses Semigroup for associative operation
Like scan1 but uses Semigroup for associative operation
Reads a single element of the input, emits nothing, then halts.
Reads a single element of the input, emits nothing, then halts.
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.
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.
Remove any None inputs.
Remove any None inputs.
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.
Passes through n elements of the input, then halts.
Passes through n elements of the input, then halts.
Like takeWhile, but emits the first value which tests false.
Like takeWhile, but emits the first value which tests false.
Passes through elements of the input as long as the predicate is true, then halts.
Passes through elements of the input as long as the predicate is true, then halts.
Wraps all inputs in Some, then outputs a single None before halting.
Wraps all inputs in Some, then outputs a single None before halting.
Convert String inputs to UTF-8 encoded byte arrays.
Convert String inputs to UTF-8 encoded byte arrays.
Outputs a sliding window of size n onto the input.
Outputs a sliding window of size n onto the input.