~jojo/Carth

4bbed4fbd89060c5027277963669072a7267d808 — JoJo 1 year, 26 days ago 380671c
Add example `count-lines.carth`. Like `wc -l`
1 files changed, 5 insertions(+), 0 deletions(-)

A examples/count-lines.carth
A examples/count-lines.carth => examples/count-lines.carth +5 -0
@@ 0,0 1,5 @@
;; Count lines of stdin

(import std)

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