A collection of generic data structures in Go
README.md
# Collections [![License](https://img.shields.io/github/license/FollowTheProcess/collections)](https://github.com/FollowTheProcess/collections) [![Go Report Card](https://goreportcard.com/badge/github.com/FollowTheProcess/collections)](https://goreportcard.com/report/github.com/FollowTheProcess/collections) [![GitHub](https://img.shields.io/github/v/release/FollowTheProcess/collections?logo=github&sort=semver)](https://github.com/FollowTheProcess/collections) [![CI](https://github.com/FollowTheProcess/collections/workflows/CI/badge.svg)](https://github.com/FollowTheProcess/collections/actions?query=workflow%3ACI) [![Go Reference](https://pkg.go.dev/badge/github.com/FollowTheProcess/collections.svg)](https://pkg.go.dev/github.com/FollowTheProcess/collections) [![codecov](https://codecov.io/gh/FollowTheProcess/collections/branch/main/graph/badge.svg)](https://codecov.io/gh/FollowTheProcess/collections) Collection of generic data structures in Go 📦 - [Collections](#collections) - [Project Description](#project-description) - [Installation](#installation) - [Quickstart](#quickstart) - [Set](#set) - [Stack](#stack) - [Queue](#queue) - [List](#list) - [Ordered Map](#ordered-map) - [DAG](#dag) - [Counter](#counter) - [Chain](#chain) - [Priority Queue](#priority-queue) > [!TIP] > Most collections support the Go 1.23 functional iterator pattern ## Project Description Small, useful, zero dependency implementations of generic collection data structures in Go: - **Set:** Offers fast membership checking as well as difference, intersection etc. - **Stack:** Simple LIFO stack - **Queue:** Simple FIFO queue - **List:** A doubly-linked list - **OrderedMap:** A map that remembers the order in which keys were inserted - **DAG:** A generic directed acyclic graph - **Counter:** A convenient construct for counting occurrences of things (similar to Python's [collections.Counter]) - **Chain:** A chain of maps, lookups first look in one map, then the next, then the next, returning the fir…