definition:
|
findFirstDeclLine :: String -> [String] -> Int -> Int
findFirstDeclLine _ [] _ = 0 -- not found
findFirstDeclLine f (l:ls) n =
if isPrefixOf f l then n else findFirstDeclLine f ls (n+1)
|
demand:
|
argument 2
|
deterministic:
|
deterministic operation
|
documentation:
|
-- finds first declaration line:
|
failfree:
|
(_, _, _)
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,{[]},_) |-> {0} || (_,{:},_) |-> _}
|
name:
|
findFirstDeclLine
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
String -> [String] -> Prelude.Int -> Prelude.Int
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
reducible on all ground data terms
|