Changes in new versions / Go 1.23
A custom iterator function for range
Two-value iterators with iter.Seq2
slices.Values turns a slice into an iterator
maps.Keys/Values now return an iterator
slices.Sorted collects an iterator into a sorted slice
slices.Chunk splits a slice into chunks
slices.Sorted collects an iterator into a sorted slice
This example is in the full version, available in the app stores:
Golang Recipes
App Store
Code Recipes
App Store
Already bought it? Sign in to your account