CurryInfo: icurry-3.2.0 / TermGraph.SVG.choiceMappingsFromXml

definition: Info
 
choiceMappingsFromXml :: XmlExp -> [ChoiceMapping]
choiceMappingsFromXml xml = case xml of
            XElem "graph" _ attrs ->
              let xmlCMs = filterElems "ChoiceMapping" attrs
              in map (\x -> (getAttribute "from" x, (getAttribute "to" x) - 1))
                     xmlCMs
            _                     -> error "No graph supplied"
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
Extract choice mappings from a single xml-graph
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({XElem}) |-> {:,[]}}
name: Info
 choiceMappingsFromXml
precedence: Info
 no precedence defined
result-values: Info
 {:,[]}
signature: Info
 XML.XmlExp -> [(Prelude.Int, Prelude.Int)]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term