4 ms·
So: (map #(vector % (inc %)) [1 1 2 3]) ; => ([1 2] [1 2] [2 3] [3 4]) Is it really that bad the function is missing?
by kaoD 12y ago
So:
(map #(vector % (inc %)) [1 1 2 3]) ; => ([1 2] [1 2] [2 3] [3 4])
Is it really that bad the function is missing?
- guard-of-terra 12y agoYes. When you have no hammer you don't recognize nails.
- kaoD 12y agoCan you support your claims by evidence instead of trite idioms? A piece of code made drastically simpler using zip-with should be enough. Don't get me wrong, I just want to learn, but your "hammer" just looks like a regular one to me without an explanation.
- coldtea 12y agoYou keep repeating this, and I find it ill-thought. Clojure offers lots of hammers, saws, drills and other tools. But you seem like you want millions of them -- a hardware store all your own. More is not always better, and you don't need to have a tool for every little specialized case (nor it's good for your coding -- fewer but solid abstractions and a set of tools that can be combined to build the most elaborate structures are better than an explosion of tools for everything).