on master help sign in
update line length histogram section
commit3f60343ed12b2b474ff2c3020859822fa9f967ef authorHarendra Kumar <harendra.kumar@gmail.com> dateFri 15 Nov 2019, 03:45 (7 years ago) parent0d43a94
1 file changed+4−1
README.md+4−1
README.md+4−1
@@ -472,6 +472,9 @@ main = withArg avgll >>= print
472472
473473### Line Length Histogram
474474
475+`classify` is not released yet, and is available in
476+`Streamly.Internal.Data.Fold`
477+
475478``` haskell
476479llhisto =
477480 S.fold (FL.classify FL.length)
@@ -480,7 +483,7 @@ llhisto =
480483 . S.unfold FH.read
481484
482485 where
483− bucket n = let i = n `div` 10 in if i > 9 then (9,n) else (i,n)
486+ bucket n = let i = n `mod` 10 in if i > 9 then (9,n) else (i,n)
484487
485488main = withArg llhisto >>= print
486489```