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
Pull