Go Tidbit: Filtering Slices In-place

from blog Blog on hjr265.me, | ↗ original
At launch, Go did many things that felt out of place next to the other popular programming languages of the era. But now, those same language features feel so natural that I find it hard to think of a time without them. One such feature is the slice type. In Go, a slice is a view of an array. And naturally, you can have multiple slices backed by...