评论:4clojure 题解 Set Intersection

求两个set的交集合,不允许使用IntersectionWrite a function which returns the intersection of two sets. The intersection is the sub-set of items that each set has in common.(= (__ #{0 1 2 3} #{2 3 4 5}) #{2 3})(= (__ #{0 1 2} #{3 4 5}) #{})(= (__ #{:a :b :c [更多>>]

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

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

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

闽ICP备15009223号-1