go-seqs
is a library for working with sequence-like data in Go, taking advantage of generics introduced in Go 1.18.
Add the library as a dependency:
go get github.com/siliconbrain/go-seqs
Import it into your code:
import "github.com/siliconbrain/go-seqs/seqs"
Use to your heart's delight!