Function Iterators might just change the way we write loops in Go
Chapters
The rangefunc experimental feature is now available with Go 1.22.
Over the last couple of weeks I have been playing with this new feature to see how far I can push it, and I think it may just change the way we write some loops in Go.
Sign up for my Golang course at: https://dreamsofcode.io/courses/command-line-apps-go
(Website is written in Go, btw)
Video links:
- RangeFunc wiki: https://go.dev/wiki/RangefuncExperiment
- Loop package: https://github.com/dreamsofcode-io/loop
Join this channel to get access to perks:
https://www.youtube.com/channel/UCWQaM7SpSECp9FELz-cHzuQ/join
Join Discord: https://discord.com/invite/eMjRTvscyt
Join Twitter: https://twitter.com/dreamsofcode_io
Science & Technology
#golang
#rangefunc
#experimental
#1.22
#iterators
#map
#filter
#reduce