Skip to content

head

head<S, A>(self): transform<S, OptionFromSelf<SchemaClass<A[number], A[number], never>>>

Defined in: node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/dts/Schema.d.ts:3429

Get the first element of a ReadonlyArray, or None if the array is empty.

S extends Any

A extends readonly unknown[]

S & Schema<A, Encoded<S>, Context<S>>

transform<S, OptionFromSelf<SchemaClass<A[number], A[number], never>>>

3.10.0