Link Search Menu Expand Document

Iso overview

Constrained isomorphisms. Compatible with Iso found in monocle-ts.

Added in v1.0.0


Table of contents


Instance Operations

compose

Signature

export declare const compose: <A, B, C>(a: Iso<A, B>, b: Iso<B, C>) => Iso<A, C>

Added in v1.0.0

identity

Signature

export declare const identity: <A>() => Iso<A, A>

Added in v1.0.0

Typeclasses

Iso (interface)

Signature

export interface Iso<A, B> {
  get: (a: A) => B
  reverseGet: (b: B) => A
}

Added in v1.0.0