| Modifier and Type | Method and Description |
|---|---|
static <A> ITransducer<A,A> |
Fns.keep(Function<A,A> f)
Creates a transducer that transforms a reducing function by applying a
function to each input and processing the resulting value, ignoring values
that are null.
|
static <A,B> ITransducer<A,B> |
Fns.map(Function<B,A> f)
Creates a transducer that transforms a reducing function by applying a mapping
function to each input.
|
static <A,B extends Iterable<A>,C> |
Fns.mapcat(Function<C,B> f)
Creates a transducer that transforms a reducing function using
a composition of map and cat.
|
static <A,P> ITransducer<Iterable<A>,A> |
Fns.partitionBy(Function<A,P> f)
Creates a transducer that transforms a reducing function that processes
iterables of input into a reducing function that processes individual inputs
by gathering series of inputs for which the provided partitioning function returns
the same value, only forwarding them to the next reducing function when the value
the partitioning function returns for a given input is different from the value
returned for the previous input.
|
Copyright © 2014. All rights reserved.