|
definition: |
addQMap :: (QName,a) -> [(String, Map.Map String a)]
-> [(String, Map.Map String a)]
addQMap ((mn,fn),i) [] = [(mn, Map.singleton fn i)]
addQMap (qn@(mn,fn),i) ((m,mmap):mmaps) =
if mn == m then (m, Map.insert fn i mmap) : mmaps
else (m,mmap) : addQMap (qn,i) mmaps
|
|
demand: |
arguments 1 2 |
|
deterministic: |
deterministic operation |
|
documentation: |
Adds the info for a qualified name in a map. |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({(,)},{[]}) |-> {:} || ({(,)},{:}) |-> {:}}
|
|
name: |
addQMap |
|
precedence: |
no precedence defined |
|
result-values: |
{:}
|
|
signature: |
((String, String), a) -> [(String, Data.Map.Map String a)] -> [(String, Data.Map.Map String a)] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |