diff options
| author | Miguel <m.i@gmx.at> | 2019-03-17 23:04:36 +0100 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2019-03-17 23:04:36 +0100 |
| commit | 9cbd38561213763dbbcefdfabd1519369d442113 (patch) | |
| tree | 53f032511d22239aaaa780c6b0507169c866c896 /freedomain/sorti.hs | |
| parent | caaebe9c30696455bed0b6b148c154ce4c15fdff (diff) | |
added info about cache hit and simple haskell for sorting by line-length
Diffstat (limited to 'freedomain/sorti.hs')
| -rwxr-xr-x | freedomain/sorti.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/freedomain/sorti.hs b/freedomain/sorti.hs new file mode 100755 index 0000000..3c3f8cd --- /dev/null +++ b/freedomain/sorti.hs @@ -0,0 +1,7 @@ +#!/usr/bin/env stack +-- stack --resolver lts-12.5 script + +import Data.List +import Data.Function + +main = interact $ unlines . sortBy (compare `on` length) . lines |
