Given the recent discussions about specter, I thought I'd add a spectral
solution. Disclaimer: I'm still a specter novice.
An unrolled solution might look like this:
(select [ALL (collect-one FIRST) LAST
ALL (collect-one FIRST) LAST
ALL (collect-one FIRST) LAST]
data)
=>
I rarely program in Clojure. At work I have to deal with a lot of deeply
nested data structures. Specter helps me to navigate those nested data
pretty easily.
The navigators does looks unlispy for the newcomer. But if you bother to
learn it , you don't have to invent your own.
Above all, the
Jason Felice writes:
> I'm very curious why most lens libraries don't just use fns with arity 1
> and 2.
Glad you mentioned it.
https://github.com/active-group/active-clojure/commit/51fd8984f2dcebc1af7ee91fc36e3360299c6fed
--
Regards,
Mike
--
You received this