Step - unfold
unfold ยท category: Lists and ordering
Splits a list (or map, into entries) into its elements, one traverser each.
Forms
unfold()
Example
g.inject([1, 2, 3]).unfold().sum().next() // 6
unfold ยท category: Lists and ordering
Splits a list (or map, into entries) into its elements, one traverser each.
unfold()
g.inject([1, 2, 3]).unfold().sum().next() // 6