CurryInfo: base-3.4.0 / Control.Search.SetFunctions.getSome

definition: Info
 
getSome :: Values a -> IO (Maybe (a, Values a))
#ifdef __KICS2__
getSome (Values [])     = return Nothing
getSome (Values (x:xs)) = return (Just (x, Values xs))
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
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: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({Values}) |-> _}
name: Info
 getSome
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Values a -> Prelude.IO (Prelude.Maybe (a, Values a))
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 reducible on all ground data terms