Re: Destructure Date Object

2016-08-12 Thread Jacob Strength
That's true, I did end up using the Calendar methods since they aren't deprecated and are more intuitive. I can still see the bean being useful for destructuring other Java objects though, Date is a bad example I suppose. On Wednesday, August 10, 2016 at 6:50:05 PM UTC-6, Karsten Schmidt wrote:

grouping and mapping

2016-08-12 Thread Erik Assum
I’ve been working on a new project in java 8 at a new client where I’ve been able to play with streams. In doing so I’ve come across Collectors.groupingBy which has some additional features that group-by doesn’t seem to have. Example: Given (def foos [[:a "foo"] [:b "bar"] [:a "baz"]]) (grou

Re: grouping and mapping

2016-08-12 Thread Moe Aboulkheir
As far as already existing, (grouped-map first (comp str/upper-case second) ...) or similar, with https://github.com/plumatic/plumbing/blob/master/src/plumbing/core.cljx#L164 Take care, Moe On Fri, Aug 12, 2016 at 6:10 PM, Erik Assum wrote: > I’ve been working on a new project in java 8 at a ne

ANN: ClojureScript 1.9.198 - cljs.spec, core ns aliasing, macro inference, :rename, and more!

2016-08-12 Thread David Nolen
ClojureScript, the Clojure compiler that emits JavaScript source code. README and source code: https://github.com/clojure/clojurescript Leiningen dependency information: [org.clojure/clojurescript "1.9.198"] This release brings cljs.spec to parity with Clojure 1.9.0-alpha10. This release al

Re: grouping and mapping

2016-08-12 Thread Christophe Grand
I have a collection of transducers that I use in such cases: (require '[net.cgrand.xforms :as x] '[clojure.string :as str]) (into {} (x/by-key (comp (map str/upper-case) (x/into []))) ;=> [[:a "foo"] [:b "bar"] [:a "baz"]]) On Fri, Aug 12, 2016 at 7:14 PM, Moe Aboulkheir wrote: > As far a

Re: ANN: ClojureScript 1.9.198 - cljs.spec, core ns aliasing, macro inference, :rename, and more!

2016-08-12 Thread Jiyin Yiyong
On Saturday, August 13, 2016 at 3:50:20 AM UTC+8, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > > README and source code: https://github.com/clojure/clojurescript > > > Leiningen dependency information: > > >     [org.clojure/clojurescript "1.