Returns a Validate that ignores its input and always yields api.Failed.
Returns a Validate that ignores its inputs and always yields api.Passed.
Constructs a constant Validate from its parameters.
Constructs a Validate from the partial function pf
.
Constructs a Validate from the partial function pf
. All T
s for
which pf
throws an exception are considered invalid according to P
.
Constructs a Validate from the predicate f
.
Constructs a Validate from the predicate f
. All values of type
T
for which f
returns true
are considered valid according to P
.
Constructs a Validate from its parameters.