Ranging over functions in Go 1.23

77 · Eli Bendersky · Nov. 2, 2024, 2:31 p.m.
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 …...