评论:4clojure 题解 Count a Sequence

统计集合元素的数量不允许使用count操作Write a function which returns the total number of elements in a sequence.(= (__ '(1 2 3 3 1)) 5)(= (__ "Hello World") 11)(= (__ [[1 2] [3 4] [5 6]]) 3)(= (__ '(13)) 1)(= (__ '(:a :b :c)) 3)用递归 [更多>>]

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

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

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

闽ICP备15009223号-1