Most discussion is on Typelevel Discord: https://discord.gg/bSQBZA3Ced
take
is in terms of uncons
Pipe[F,O,O]
as type seems incompatible
Pull.output1
might be what you want to use
>>
s.pull.uncons1.flatMap {
case Some((o, tl)) =>
if(o == thing) {
output1(o) >> go(tl, n - 1)
}
else {
output1(o) >> go(tl,n)
}
case None =>
Pull.done
eval
returns it in R
not O
Pull.output/output1
is the command that lets you do so
Pull