Attempt to stream SPics, not sure if this improves speed

This commit is contained in:
2022-07-04 20:34:47 +01:00
parent 1e32b05406
commit 6972256751
5 changed files with 64 additions and 22 deletions
+8
View File
@@ -23,3 +23,11 @@ sortStreamOn :: Ord a => (b -> a) -> StreamOf b -> Stream (Of b) Identity ()
sortStreamOn f = S.each . runIdentity . L.purely S.fold_ L.map . S.map g
where
g x = (f x,x)
--applyUnzip
-- :: (Stream (Of a) IO () -> IO r)
-- -> (Stream (Of b) IO () -> IO ())
-- -> Stream (Of a) (Stream g IO) ()
-- -> IO r
--applyUnzip f g s = h s