RosettaCodeData/Task/Strip-comments-from-a-string/Clojure/strip-comments-from-a-string.clj
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

2 lines
76 B
Clojure

> (apply str (take-while #(not (#{\# \;} %)) "apples # comment"))
"apples "