Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この Ruby コードを Clojure で書き直すにはどうすればよいですか?
seq = [1, 2, 3, 4, 5].each_cons(2) #=> lazy Enumerable of pairs seq.to_a => [[1, 2], [2, 3], [3, 4], [4, 5]]
クロージャ:
(??? 2 [1 2 3 4 5]) ;=> lazy seq of [1 2] [2 3] [3 4] [4 5]