Description

Partition func(func(A, B) bool, []A []A) Applies the given iterator function to partition element of a collection (slice or map). If the collection is a Slice, the iterator function arguments are *value, index* If the collection is a Map, the iterator function arguments are *value, key* Iterator functions accept a value, and the index or key is an optional argument. Note: partition does not return a value, you may want un.Map var Partition func(func(value, i interface{}), interface{})

Partition is referenced in 1 repository

github.com/tobyhede/go-underscore