Help for this page

Select Code to Download


  1. or download this
    (defn pm-chunk [data chsize]
      (apply str
    ...
                              (partition chsize chsize nil data))
                         (repeat \newline))))
    
  2. or download this
    user=> (print (pm-chunk  ["a" "bb" "c" "d" "e" "f" "g" "h"] 3))
    a bb c
    d e f
    g h