Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am earle on github.
  • I am earle (https://keybase.io/earle) on keybase.
  • I have the public key with fingerprint 27E0 CF3F 94DA 7F3F 2AA3  A3EA 3F03 6575 B4A2 BF92

To claim this, I am signing this object:

@earle
earle / gist:7058944
Last active December 25, 2015 23:39
; data.txt contains lines of numbers separated by spaces
; add up the numbers on each line and print
(with-open [rdr (io/reader "resources/data.txt")]
(doseq [line (line-seq rdr)]
;(println (apply + (map read-string (string/split line #"\s+"))))))
(println (apply + (map read-string (re-seq #"\d+" line))))))