Cont Seq
ContSeq is multi-shot control-flow streaming type. It can emit 0..n elements, and it has ability to abort processing elements at any given time in the stream without aborting the whole stream.
It's lazy, and thus allows for passing it around for composition.
It requires explicit running by using a terminal operator such as drain, forEach, toList or toSet.
Besides that ContSeq exposes APIs that you mind find on any other Monad.
Types
Functions
map
Link copied to clipboard
Maps every element in the sequence with f, and allows for aborting the mapped value using ContSyntax.abort or ContSyntax.ensure.