fork download
  1. (println
  2. (map (fn[x k](let[[u i](map #(re-seq #"\w+"(apply str %))(split-at k x))](str(last u)(nth i 0))))
  3. ["abc def" "abc def" "abc abc" "ab cd ef" "ab cd" "ab!cd"]
  4. [2 5 2 4 6 1]))
  5. ;abc def 2 ;abc ab|c def
  6. ;abc def 5 ;def abc d|ef
  7. ;abc abc 2 ;abc ab|c abc
  8. ;ab cd ef 4 ;cd ab c|d ef
  9. ;ab cd 6 ;cd ab c|d
  10. ;ab!cd 1 ;ab a|b!cd;
Success #stdin #stdout 1.63s 335552KB
stdin
Standard input is empty
stdout
(abc def abc cd cd ab)