CurryInfo: base-3.4.0 / Control.Search.Unsafe.someValue

definition: Info
 
someValue :: a -> a
someValue x = case oneValue x of Just v  -> v
                                 Nothing -> failed
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
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: Info
 <FAILING>
indeterministic: Info
 might be indeterministic
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 someValue
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 a -> a
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 possibly non-reducible on same data term