OTWO-1213 Works around lost encoding in Ruby/C binding layer
[ohcount] / test / src_dir / example.rkt
1 ;; language declaration commented out until someone extends the
2 ;; parser to support it:
3
4 ;; #lang racket
5
6 ;; Report each unique line from stdin
7 (let ([saw (make-hash)])
8   (for ([line (in-lines)])
9     (unless (hash-ref saw line #f)
10       (displayln line))
11     (hash-set! saw line #t)))
12