~jojo/Carth

ref: ae1d242d7d48292779dcbd953e5864bb4211e1ca Carth/examples/count-lines.carth -rw-r--r-- 124 bytes
ae1d242dJoJo Update stackage release & use default-extensions in cabal file 9 months ago
                                                                                
1
2
3
4
5
;; Count lines of stdin

(import std)

(define main (io/bind display (io/map (<o show-nat (<o count lines)) get-contents)))