@quenk/preconditions
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Array
Failure
fail
Index
Classes
Array
Failure
Functions
fail
Functions
Const
fail
fail<A, B>
(
fails
:
Failures
<
A
>
, val
:
A
[]
, ctx
?:
Context
)
:
Result
<
A
[]
,
B
[]
>
fail constructs a new ArrayFailure wrapped in the left part of a Result.
Type parameters
A
B
Parameters
fails:
Failures
<
A
>
val:
A
[]
Default value
ctx:
Context
= {}
Returns
Result
<
A
[]
,
B
[]
>
Generated using
TypeDoc
fail constructs a new ArrayFailure wrapped in the left part of a Result.