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.
(recursiveTuple2Ops: RecursiveTuple2Ops[RecursiveTuple2Ops[T, A], A]).head
(recursiveTuple2Ops: RecursiveTuple2Ops[RecursiveTuple2Ops[T, A], A]).tail
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.
(recursiveTuple2Ops: RecursiveTuple2Ops[RecursiveTuple2Ops[T, A], A]).toColist(L)
(recursiveTuple2Ops: RecursiveTuple2Ops[RecursiveTuple2Ops[T, A], A]).toNEColist(L)