Tag

#Iterators

Every article tagged Iterators, in one place.

  • 2 articles
  • 2 min of reading
  • 04 Jul, 2026 last updated

Showing 2 articles

Go 1 min read

Iterators in Go: Range Over Functions

Since Go 1.23, for range can loop over functions . This gives Go a standard way to write iterators for custom data structures, database rows or paginated APIs. The iterator types // package iter type Seq[V any] func(yield func(V) bool) type Seq2[K, V any] func...

11 May, 2026 Author 1.05K 32
Read article