RosettaCodeData/Task/String-length/Clojure/string-length-2.clj

3 lines
172 B
Clojure
Raw Permalink Normal View History

2014-01-17 05:32:22 +00:00
(def character-length #(.codePointCount % 0 (count %)))
(map character-length ["møøse" "𝔘𝔫𝔦𝔠𝔬𝔡𝔢" "J\u0332o\u0332s\u0332e\u0301\u0332"]) ; (5 7 9)