Skip to content

Uniq

const Uniq: object

Defined in: Data/Uniq.ts:168

add: <A>(item) => (s) => ReadonlySet<A>

A

A

(s) => ReadonlySet<A>

difference: <A>(other) => (s) => ReadonlySet<A>

A

ReadonlySet<A>

(s) => ReadonlySet<A>

empty: <A>() => ReadonlySet<A>

A

ReadonlySet<A>

filter: <A>(predicate) => (s) => ReadonlySet<A>

A

(a) => boolean

(s) => ReadonlySet<A>

filterMap: <A, B>(f) => (s) => ReadonlySet<B>

A

B

(a) => Maybe<B>

(s) => ReadonlySet<B>

from: object

Array: <A>(arr) => ReadonlySet<A> = fromArray

A

readonly A[]

ReadonlySet<A>

has: <A>(item) => (s) => boolean

A

A

(s) => boolean

insert: <A>(item) => (s) => ReadonlySet<A> = add

A

A

(s) => ReadonlySet<A>

intersection: <A>(other) => (s) => ReadonlySet<A>

A

ReadonlySet<A>

(s) => ReadonlySet<A>

is: object

empty: <A>(s) => boolean = isEmpty

A

ReadonlySet<A>

boolean

nonEmpty: <A>(s) => s is NonEmptySet<A> = isNonEmpty

A

ReadonlySet<A>

s is NonEmptySet<A>

isSubsetOf: <A>(other) => (s) => boolean

A

ReadonlySet<A>

(s) => boolean

map: <A, B>(f) => (s) => ReadonlySet<B>

A

B

(a) => B

(s) => ReadonlySet<B>

NonEmpty: object = UniqNonEmptyConst

from: object

Set: <A>(s) => Maybe<NonEmptySet<A>>

A

ReadonlySet<A>

Maybe<NonEmptySet<A>>

map: <A, B>(f) => (s) => NonEmptySet<B>

A

B

(a) => B

(s) => NonEmptySet<B>

reduce: <A>(f) => (s) => A

A

(acc, a) => A

(s) => A

singleton: <A>(item) => NonEmptySet<A>

A

A

NonEmptySet<A>

to: object

Array: <A>(s) => NonEmptyArr<A>

A

NonEmptySet<A>

NonEmptyArr<A>

reduce: <A, B>(init, f) => (s) => B

A

B

B

(acc, a) => B

(s) => B

remove: <A>(item) => (s) => ReadonlySet<A>

A

A

(s) => ReadonlySet<A>

singleton: <A>(item) => ReadonlySet<A>

A

A

ReadonlySet<A>

size: <A>(s) => number

A

ReadonlySet<A>

number

to: object

Array: <A>(s) => readonly A[] = toArray

A

ReadonlySet<A>

readonly A[]

toggle: <A>(item) => (s) => ReadonlySet<A>

A

A

(s) => ReadonlySet<A>

union: <A>(other) => (s) => ReadonlySet<A>

A

ReadonlySet<A>

(s) => ReadonlySet<A>