definition: |
assert :: Bool -> String -> a -> a assert cond s x = if cond then x else error s |
demand: |
argument 1 |
deterministic: |
deterministic operation |
documentation: |
Assert a condition w.r.t. an error message. If the condition is not met it fails with the given error message, otherwise the third argument is returned. |
failfree: |
(_, _, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{({True},_,_) |-> _} |
name: |
assert |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
Prelude.Bool -> String -> a -> a |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
reducible on all ground data terms |