-
Notifications
You must be signed in to change notification settings - Fork 136
ListX
johnmcclean-aol edited this page Nov 23, 2016
·
4 revisions
ListX is an extended JDK List.
It implements List, ConvertableSequence, CyclopsCollectable, ExtendedTraversable, Filterable, Foldable, Functor, java.lang.Iterable, IterableFilterable, IterableFoldable, [IterableFunctor] ( ), OnEmpty, OnEmptySwitch<T,java.util.List>, org.reactivestreams.Publisher, Sequential, To, TransformerTraversable, Traversable, Unit, Zippable, ZippingApplicativable
LazyListX in cyclops-reactor offers lazy execution of extension operators.
By default ListX instances are backed by a mutable ArrayList. This is configurable via the fromIterable method e.g.
ListX.fromIterable(ListX.immutableCollector(), Arrays.asList(1,2,3,4)) .plus(5);
oops - my bad