Go has multiple return values, so you could instead do:
matches, mismatches := slices.Partition(xs, func(x) bool { return x == condition }); matches, mismatches := slices.Partition(xs, func(x) bool { return x == condition });No comments yet.