Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitN ¶
func SplitN[M ~map[K]V, K comparable, V any](m M, n int) []M
SplitN slices s into submaps and returns a map of the submaps .
The count determines the number of submaps to return:
n > 0: at most n submaps; the last submaps will be the unsplit remainder. n == 0: the result is nil (zero submaps) n < 0: all submaps as n == len(s)
Edge cases for s and sep (for example, empty strings) are handled as described in the documentation for Split.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.