Append an element to the end of a Array, creating a new NonEmptyArray.
Array
NonEmptyArray
import { append } from 'fp-ts/Array'import { pipe } from 'fp-ts/function'assert.deepStrictEqual(pipe([1, 2, 3], append(4)), [1, 2, 3, 4]) Copy
import { append } from 'fp-ts/Array'import { pipe } from 'fp-ts/function'assert.deepStrictEqual(pipe([1, 2, 3], append(4)), [1, 2, 3, 4])
2.10.0
Append an element to the end of a
Array
, creating a newNonEmptyArray
.