fs2 icon indicating copy to clipboard operation
fs2 copied to clipboard

Make `init:S` a by name parameter in `mapAccumulate`?

Open He-Pin opened this issue 3 years ago • 0 comments

def mapAccumulate[S, O2](init: S)(f: (S, O) => (S, O2)): Stream[F, (S, O2)]

to

def mapAccumulate[S, O2](init: => S)(f: (S, O) => (S, O2)): Stream[F, (S, O2)]

It's not a bug, have no idea it's labeled as bug

He-Pin avatar Sep 18 '22 14:09 He-Pin