按照数值给一个序列交错分组
Write a function which reverses the interleave process into x number of subsequences.
使用了clojure中的group-by方法
(fn [coll x]
(->
(group-by #(rem % x) coll)
(seq)
(map second)))
按照数值给一个序列交错分组
Write a function which reverses the interleave process into x number of subsequences.
使用了clojure中的group-by方法
(fn [coll x]
(->
(group-by #(rem % x) coll)
(seq)
(map second)))