CurryInfo: icurry-3.2.0 / ICurry.Interpreter.demandOf

definition: Info
 
demandOf :: String -> [IFunction] -> Maybe Int
demandOf fn prog = case d of
  []  -> Nothing
  [i] -> Just i
  _   -> error $ "Function '" ++ fn ++
                 "' has more than one demanded argument (not yet supported)"
 where
  IFunction _ _ _ d _ = funcOf fn prog
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
Returns the demanded argument of a given function name.
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_) |-> _}
name: Info
 demandOf
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> [ICurry.Types.IFunction] -> Prelude.Maybe Prelude.Int
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 reducible on all ground data terms