Documentation ¶ Index ¶ func Partition[E any, S ~[]E](s S, pred func(E) bool) (t, f S) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Partition ¶ func Partition[E any, S ~[]E](s S, pred func(E) bool) (t, f S) Partition returns two slices, t and f. t contains all elements of s for which pred() returns true, and f contains all elements for which pred() returns false. Types ¶ This section is empty. Source Files ¶ View all Source files xslices.go Click to show internal directories. Click to hide internal directories.