评论:4clojure 题解 Drop Every Nth Item

编写一个函数美隔接收一个序列coll和整数n每隔n个元素就删除coll中的一个元素Write a function which drops every Nth item from a sequence.(= (__ [1 2 3 4 5 6 7 8] 3) [1 2 4 5 7 8])(= (__ [:a :b :c :d :e :f] 2) [:a :c :e])(= (__ [1 2 3 4 5 6] 4) [1 2 3 5 6])(fn [更多>>]

网友评论0 条评论)
发表评论

Copyright © 2012-2014 我的代码板 Inc. 保留所有权利。

页面耗时0.0167秒, 内存占用1.81 MB, 访问数据库8次

闽ICP备15009223号-1