Drops exactly n
elements from the stream.
Drops exactly n
elements from the stream.
This doesn’t expose the Coalgebra because it returns Stream \/ Stream
,
which isn’t the type of drop
.
Colists are simply streams that may terminate, so a stream is easily converted to a Colist that doesn’t terminate.
Colists are simply streams that may terminate, so a stream is easily converted to a Colist that doesn’t terminate.
(recursiveListFOps: RecursiveListFOps[RecursiveListFOps[T, A], A]).find(cond)
(recursiveListFOps: RecursiveListFOps[RecursiveListFOps[T, A], A]).headOption
(recursiveListFOps: RecursiveListFOps[RecursiveListFOps[T, A], A]).tailOption