|
definition: |
getSome :: Values a -> IO (Maybe (a, Values a)) #ifdef __KICS2__ getSome (Values []) = return Nothing getSome (Values (x:xs)) = return (Just (x, Values xs)) |
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
Selects (indeterministically) some value in a multiset of values and returns the selected value and the remaining multiset of values. Thus, `select` has always at most one value. If the value set is empty, `Nothing` is returned. |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({Values}) |-> _}
|
|
name: |
getSome |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
Values a -> Prelude.IO (Prelude.Maybe (a, Values a)) |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |