You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope I'm using the term contravariant here correctly. Basically I want to flatten the inputs of a fold. I.e., I need a function with the following type:
contraFlatten::Foldmab->Foldm [a] b-- or maybe something more general is possible? e.g.,-- contraFlatten :: Foldable f => Fold m a b -> Fold m (f a) b
I looked through streamly-core and nothing like this seems to exist?
The text was updated successfully, but these errors were encountered:
The unfoldMany implementation does not fuse though, so if fusion/efficiency is important you cannot use it. Fusing such operation would require changing the type.
I hope I'm using the term contravariant here correctly. Basically I want to flatten the inputs of a fold. I.e., I need a function with the following type:
I looked through
streamly-core
and nothing like this seems to exist?The text was updated successfully, but these errors were encountered: