Link Search Menu Expand Document

At overview

This module is experimental

Experimental features are published in order to get early feedback from the community.

A feature tagged as Experimental is in a high state of flux, you’re at risk of it changing without notice.

Added in v2.3.0


Table of contents


constructors

at

Signature

export declare const at: <S, I, A>(at: (i: I) => Lens<S, A>) => At<S, I, A>

Added in v2.3.8

atReadonlyMap

Signature

export declare const atReadonlyMap: <K>(E: Eq<K>) => <A = never>() => At<ReadonlyMap<K, A>, K, O.Option<A>>

Added in v2.3.7

atReadonlyRecord

Signature

export declare const atReadonlyRecord: <A = never>() => At<Readonly<Record<string, A>>, string, O.Option<A>>

Added in v2.3.7

atReadonlySet

Signature

export declare const atReadonlySet: <A>(E: Eq<A>) => At<ReadonlySet<A>, A, boolean>

Added in v2.3.7

fromIso

Lift an instance of At using an Iso.

Signature

export declare const fromIso: <T, S>(iso: Iso<T, S>) => <I, A>(sia: At<S, I, A>) => At<T, I, A>

Added in v2.3.0

atRecord

Use atReadonlyRecord instead.

Signature

export declare const atRecord: <A = never>() => At<Readonly<Record<string, A>>, string, O.Option<A>>

Added in v2.3.2

model

At (interface)

Signature

export interface At<S, I, A> {
  readonly at: (i: I) => Lens<S, A>
}

Added in v2.3.0