/seqs

Library for working with Go's iterable sequences.

Primary LanguageGoMIT LicenseMIT

Seqs - functions for operating on and with Go iterable sequences

Go Reference Go Report Card Tests Coverage Status

This is seqs, a library for working with iterable sequences, a.k.a. iterators, introduced in Go 1.23 via the “range over function” language feature and the iter standard-library package.

This is an adaptation of github.com/bobg/go-generics/v3/iter. The central type in that package, iter.Of, was made obsolete with the introduction of Go iterators. This library provides operations on iterable sequences analogous to the ones on iter.Of in the old package. It combines those with the proposal for an x/exp/iter package.