News for hackers. Stuff that matters.
Re:Clojure 1.11 planning by airstrike on Tuesday October 08, 2019 @10:53AM (#21192940)
Slightly off-topic, but as someone who's normally using Python / R, my hands feel tired just from thinking about typing all of that
Re:Clojure 1.11 planning by ARandomerDude on Tuesday October 08, 2019 @11:00AM (#21193011)
In 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.

Re:Clojure 1.11 planning by Uhuhreally on Tuesday October 08, 2019 @12:56PM (#21194313)
In Clojure that's:

  (map (fn [x] (* 2 x)) [1 1 2 3 5])
  => (2 2 4 6 10)