Example code for Go generics.
for go1.22
$ GOEXPERIMENT=rangefunc go build
for go1.23
$ go build
Go 1.22 or later
MIT
Yasuhiro Matsumoto (a.k.a. mattn)