Skip to main content Link Menu Expand (external link) Document Search Copy Copied

setFromArray overview

Added in v0.5.0


Table of contents


SetFromArrayC (interface)

Signature

export interface SetFromArrayC<C extends t.Mixed> extends t.Type<Set<t.TypeOf<C>>, Array<t.OutputOf<C>>, unknown> {}

Added in v0.5.0

setFromArray

Signature

export function setFromArray<C extends t.Mixed>(
  codec: C,
  O: Ord<t.TypeOf<C>>,
  name: string = `Set<${codec.name}>`
): SetFromArrayC<C> { ... }

Added in v0.5.0