definition: |
someValue :: a -> a someValue x = case oneValue x of Just v -> v Nothing -> failed |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
Returns some value for an expression. If the expression has no value, the computation fails. Conceptually, the value is computed on a copy of the expression, i.e., the evaluation of the expression does not share any results. In PAKCS, the evaluation suspends as long as the expression contains unbound variables or the computed value contains unbound variables. Note that this operation is not purely declarative since the computed value depends on the ordering of the program rules. Thus, this operation should be used only if the expression has a single value. |
failfree: |
<FAILING> |
indeterministic: |
might be indeterministic |
infix: |
no fixity defined |
iotype: |
{(_) |-> _} |
name: |
someValue |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
a -> a |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
possibly non-reducible on same data term |