Hello, Björn!

  Thank you, that's exactly what I was looking for!

16.12.2016, 16:01, "Björn Lindqvist" <bjou...@gmail.com>:
> I think you can use group-by from sequences.extras. It works similar
> to map-runs:
>
> { 1 5 "hello" 2 "world" 3 6 9 "!" } [ integer? ] group-by [ swap [ sum
> ] [ first ] if ] { } assoc>map .
> { 6 "hello" 2 "world" 18 "!" }

---=====--- 
 Александр

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to