Open
Description
Given a string "aaabcdddefffff" split apart into continuous groups, i.e., ["aaa" "b" "c" "ddd" "e" "fffff"]?
(partition-by identity "aaabcdddefffff")
(->> (partition-by identity "aaabcdddefffff")
(mapv (partial apply str)))
if seeing partial apply str makes you shudder
(->> (partition-by identity "aaabcdddefffff")
(mapv clojure.string/join))
clojure.string/join has a 1-arity that joins with an empty string, so negates the need to use apply str