News for hackers. Stuff that matters.
Re:Go 1.18 by akavi on Tuesday March 15, 2022 @02:57PM (#30689478)
Go has multiple return values, so you could instead do:

    matches, mismatches := slices.Partition(xs, func(x) bool { return x == condition });

There are no comments on this comment yet.