RosettaCodeData/Task/Strip-comments-from-a-string/Clojure/strip-comments-from-a-string.clj

3 lines
76 B
Clojure
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
> (apply str (take-while #(not (#{\# \;} %)) "apples # comment"))
"apples "