评论:4clojure 题解 Compress a Sequence

去除字符串中连续重复的部分Write a function which removes consecutive duplicates from a sequence.(= (apply str (__ "Leeeeeerrroyyy")) "Leroy")(= (__ [1 1 2 3 3 2 2 3]) '(1 2 3 2 3))(= (__ [[1 2] [1 2] [3 4] [1 2]]) '([1 2] [3 4] [更多>>]

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

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

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

闽ICP备15009223号-1