Collect an array of Options into a single Option of an array. Resolves to some([...]) if every input is some; short-circuits to none on the first none encountered.
some([...])
some
none
const parts = all([fromNullable(user.first), fromNullable(user.last)]) // some(["Alice", "Smith"]) or none if either field is null/undefined Copy
const parts = all([fromNullable(user.first), fromNullable(user.last)]) // some(["Alice", "Smith"]) or none if either field is null/undefined
Collect an array of Options into a single Option of an array. Resolves to
some([...])if every input issome; short-circuits to none on the firstnoneencountered.