2 ms·
Slightly off-topic, but as someone who's normally using Python / R, my hands feel tired just from thinking about typing all of that
by airstrike 7y ago
Slightly off-topic, but as someone who's normally using Python / R, my hands feel tired just from thinking about typing all of that
- ARandomerDude 7y agoIn practice, you wouldn't. You'd import at the top of the file, then type `Stream/of` instead of `java.util.stream.Stream/of`. I almost never use Java directly though because there are so many great Clojure wrappers.
- Uhuhreally 7y agoIn Clojure that's: (map (fn [x] (* 2 x)) [1 1 2 3 5]) => (2 2 4 6 10)