File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2655,7 +2655,7 @@ two
26552655@copy@ can be considered a special case of 'expand':
26562656
26572657@
2658- copy = 'expand' $ \p (a :> as) -> a :> p (a :> as)
2658+ copy = 'expand' $ \\ p (a :> as) -> a :> p (a :> as)
26592659@
26602660
26612661If 'Of' were an instance of 'Control.Comonad.Comonad', then one could write
@@ -2731,8 +2731,8 @@ S.toList $ S.unzip $ S.each xs
27312731'unzip' can be considered a special case of either 'unzips' or 'expand':
27322732
27332733@
2734- unzip = 'unzips' . 'maps' (\((a,b) :> x) -> Compose (a :> b :> x))
2735- unzip = 'expand' $ \p ((a,b) :> abs) -> b :> p (a :> abs)
2734+ unzip = 'unzips' . 'maps' (\\ ((a,b) :> x) -> Compose (a :> b :> x))
2735+ unzip = 'expand' $ \\ p ((a,b) :> abs) -> b :> p (a :> abs)
27362736@
27372737-}
27382738unzip :: Monad m => Stream (Of (a ,b )) m r -> Stream (Of a ) (Stream (Of b ) m ) r
You can’t perform that action at this time.
0 commit comments