News for hackers. Stuff that matters.
Re:Go 1.18 by cheriot on Tuesday March 15, 2022 @03:04PM (#30689631)
My experience writing Scala was that there's a modest list of ways people iterate over collections that covers 99.9% of cases. For this example, many languages have a Partition function.

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

There are no comments on this comment yet.