Ranging over functions in Go 1.23

from blog Eli Bendersky's website, | ↗ original
Go 1.23 shipped with a new major feature: ranging over functions (also known as "iterators"), per this proposal. This feature is nicely covered in the official Go blog post from August. This article is a rewrite of my older post that described this feature when it was still in …