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

definition: Info
 
searchTreeSize :: SearchTree _ -> (Int, Int, Int)
searchTreeSize (Value _)  = (1, 0, 0)
searchTreeSize (Fail _)   = (0, 1, 0)
searchTreeSize (Or t1 t2) = let (v1, f1, o1) = searchTreeSize t1
                                (v2, f2, o2) = searchTreeSize t2
                             in (v1 + v2, f1 + f2, o1 + o2 + 1)
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
Returns the size (number of Value/Fail/Or nodes) of the search tree.
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({Value}) |-> {(,,)} || ({Fail}) |-> {(,,)} || ({Or}) |-> {(,,)}}
name: Info
 searchTreeSize
precedence: Info
 no precedence defined
result-values: Info
 {(,,)}
signature: Info
 SearchTree a -> (Prelude.Int, Prelude.Int, Prelude.Int)
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 reducible on all ground data terms