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

3 lines
76 B
Clojure

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