Hello, Björn!
18.11.2016, 18:25, "Björn Lindqvist" <[email protected]>:
> USE: sequences.extras
> [ id>> ] sort-with [ id>> ] group-by [ second first ] map
I could not find `group-by` using the Browser. Grepping the source tree, it
turned up in `grouping.extras`.
> USE: math.statistics
> [ id>> ] collect-by [ nip first ] { } assoc>map
`collect-by` is a useful thing, got to keep it in mind. I remember
implementing something very similar not too long ago.
> It's not as efficient as what John committed though. :) Maybe we
> should try and clean it up somehow? If we put all group
> by/aggregation/uniquifying words in the same vocab it would be more
> easily discoverable?
That may be a good idea. I'm regularly rereading the documentation for
`sequences` and `sets`, so maybe a little pointer to adjacent vocabs (at least
*.extras) could be made.
---=====---
Александр
------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk