Partitioning in clojure with a lazy collection of strings
问题 Starting with a collection of strings like: (def str-coll ["abcd" "efgh" "jklm"]) The goal is to extract off a specific number of characters from the head of the string collection, generating a partitioned grouping of strings. This is the desired behavior: (use '[clojure.contrib.str-utils2 :only (join)]) (partition-all 3 (join "" str-coll)) ((\a \b \c) (\d \e \f) (\g \h \j) (\k \l \m)) However, using join forces evaluation of the entire collection, which causes memory issues when dealing with