Dear list,
I have tried to make a comprehension returing Xml, like the following:
sig toXml: ([String]) -> Xml
fun toXml(goals) {
<#>
{
for (goal <- goals) {
[stringToXml(goal)]
}
}
</#>
}
Is there a way to convert lists of Xml to Xml. IMHO a fragment is
actually a list of Xml nodes.
Another questions: Is there support for recursive variant data structures?
e.g.
typename Tree = [|Leaf:() | Branch: (Tree, Tree)|]
$ links tree.links
yields
*** Fatal error : Unbound type constructor Tree
Cheers,
Jakob
_______________________________________________
links-users mailing list
[email protected]
http://lists.inf.ed.ac.uk/mailman/listinfo/links-users