Skip to content
Cinch
Packages/cinch-collections/Data.Set
SAMPLE API
MODULE REFERENCE

Data.Set

Persistent collections of distinct values.

SYNOPSIS

Types and classes

opaque Set a

A collection containing each value at most once.

Functions and values

member

function§Source ↗
member :: forall a. using (ord :: Ord a) => a -> Set a -> Bool

Test whether the set contains a value.

union

function§Source ↗
union :: forall a. using (ord :: Ord a) => Set a -> Set a -> Set a

Combine two sets, retaining each value once.