Realized I forgot to include an example of how the code I linked to can be
used to solve the original problem, which will make it clearer how it is
used.
https://gist.github.com/4349972
But when writing that example, I remembered why I created factory-style
functions. The group-by from Daniel
I like the idea of it being built-in and might prefer that approach,
however, I wanted to share an alternative.
https://gist.github.com/4346395
I needed to take a denormalized table of config data and create a nested
lookup map, so that I wouldn't need to repeatedly filter the dataset while
us
I think it sounds like a nice addition, after mulling it over a little.
On Mon, Dec 17, 2012 at 4:47 AM, László Török wrote:
> Hi,
>
> I have come across use cases in the past where an additional
> transformation step was indeed very handy and I wrote my own version of
> group-by, one identical
Hi,
I have come across use cases in the past where an additional transformation
step was indeed very handy and I wrote my own version of group-by, one
identical to Daniel's.
Maybe a function worthwhile for c.c.incubator.
Las
2012/12/17 Daniel Dinnyes
> Also note that I wrote in my first post
Also note that I wrote in my first post that "Without the value-mapper
argument it is very awkward to achieve the same structure after the
group-by call". The `map-vals` function is almost the closest you can get
to map values after a group-by in a streamlined and clean manner. There is `
fmap
Hi,
I expect the cost of calling `identity` to be negligible. Not for sure, but
the JVM might even inline it at run-time, or there might be optimizations
for it in clojure.core during compilation... I cannot comment on that. But
even with a full virtual call, it should be faster than iterating