on master help sign in
Fix example in demux documentation.
d003fe5Pranay Sashank
src/Streamly/Internal/Data/Fold.hs+1−2
@@ -1055,8 +1055,7 @@ demuxWith f kv = Fold step initial extract
1055-- > let table = Data.Map.fromList [(\"SUM", FL.sum), (\"PRODUCT", FL.product)]
1055-- > let table = Data.Map.fromList [(\"SUM", FL.sum), (\"PRODUCT", FL.product)]
1056-- input = S.fromList [(\"SUM",1),(\"PRODUCT",2),(\"SUM",3),(\"PRODUCT",4)]
1056-- input = S.fromList [(\"SUM",1),(\"PRODUCT",2),(\"SUM",3),(\"PRODUCT",4)]
1057-- in S.fold (FL.demux table) input
1057-- in S.fold (FL.demux table) input
1058−-- One 1
1058+-- fromList [("PRODUCT",8),("SUM",4)]
1059−-- Two 2
1060-- @
1059-- @
1061--
1060--
1062-- @since 0.7.0
1061-- @since 0.7.0