CurryInfo: base-3.4.0 / Control.Search.SearchTree.limitSearchTree

definition: Info
 
limitSearchTree :: Int -> SearchTree a -> SearchTree a
limitSearchTree _ v@(Value _) = v
limitSearchTree _ f@(Fail _)  = f
limitSearchTree n (Or t1 t2)  =
  if n<0 then Fail (-1)
         else Or (limitSearchTree (n-1) t1) (limitSearchTree (n-1) t2)
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
Limit the depth of a search tree. Branches which a depth larger
than the first argument are replace by `Fail (-1)`.
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{Value}) |-> {Value} || (_,{Fail}) |-> {Fail} || (_,{Or}) |-> {Fail,Or}}
name: Info
 limitSearchTree
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Prelude.Int -> SearchTree a -> SearchTree a
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term