definition: |
replacePackageName :: String -> ERD -> String -> String replacePackageName _ _ [] = [] replacePackageName pn erd (c:cs) | c=='X' && take 12 cs == "XXPKGNAMEXXX" = pn ++ replacePackageName pn erd (drop 12 cs) | otherwise = c : replacePackageName pn erd cs |
demand: |
argument 3 |
deterministic: |
deterministic operation |
documentation: |
Replace every occurrence of "XXXPKGNAMEXXX" by first argument |
failfree: |
(_, _, _) |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,_,{[]}) |-> {[]} || (_,_,{:}) |-> _} |
name: |
replacePackageName |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
String -> Database.ERD.ERD -> String -> String |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |