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

Array overview

Added in v1.0.0


Table of contents


constructors

consNonEmpty

An optic that accesses the Cons case of a NonEmptyReadonlyArray.

Signature

export declare const consNonEmpty: {
  <A>(): Iso<readonly [A, ...A[]], readonly [A, readonly A[]]>
  <A, B>(): PolyIso<readonly [A, ...A[]], readonly [B, ...B[]], readonly [A, readonly A[]], readonly [B, readonly B[]]>
}

Added in v1.0.0