You're right. Just for information, slices.Contains() uses the index, not a copied value.
https://cs.opensource.google/go/go/+/refs/tags/go1.26.5:src/...
You're right. Just for information, slices.Contains() uses the index, not a copied value.
https://cs.opensource.google/go/go/+/refs/tags/go1.26.5:src/...