RosettaCodeData/Task/Strip-comments-from-a-string/Clojure/strip-comments-from-a-string.clj
2023-07-01 13:44:08 -04:00

2 lines
76 B
Clojure

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