Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserAccumulator ¶
type UserAccumulator interface{}
type UserByAgeCount ¶
type UserSlice ¶
type UserSlice []User
UserSlice is a slice of User that bar.
func (UserSlice) GroupBy ¶
GroupBy returns a map of string keys to UserSlice using the provided groupBy fn.
func (UserSlice) Map ¶
Map calls the provided func for each element in t and returns a new UserSlice.
func (UserSlice) Reduce ¶
func (t UserSlice) Reduce(accumulator func(UserAccumulator, User) UserAccumulator, initial UserAccumulator) UserAccumulator
Click to show internal directories.
Click to hide internal directories.