The following packages are included, with tests demonstrating the iterator implementations:
- bst - Binary search tree with traversal iterators
- xiter - Functions from the iterator library proposal
- list - Linked list with traversal iterators
- maps - Iterators for keys and values of maps
- secret - Iterators for a custom slice type
See the related blog post on Medium:
Ensure Go 1.22 is installed.
Run tests using the rangefunc
experiment flag.
$ GOEXPERIMENT=rangefunc go test ./...