|
definition: |
toList' :: InternalTrie a -> [(String, a)]
toList' (InternalTrie v ts) = case v of
Nothing -> concatMap (\(c, t) -> map (\(s, w) -> (c:s, w)) (toList' t)) ts
Just z -> ("", z) :
concatMap (\(c, t) -> map (\(s, w) -> (c:s, w)) (toList' t)) ts
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
Converts an internal trie into a list of key-value pairs. |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({InternalTrie}) |-> _}
|
|
name: |
toList' |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
InternalTrie a -> [(String, a)] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |