throwIf
lib.trivial.throwIf
Docs pulled from | This Revision | 4 days ago
Like throwIfNot, but negated (throw if the first argument is true).
Inputs
cond-
1. Function argument
msg-
2. Function argument
Type
bool -> string -> a -> a
Noogle detected
Implementation
The following is the current implementation of this function.
throwIf = cond: msg: if cond then throw msg else x: x;