summaryrefslogtreecommitdiff
path: root/tests/pathmap.ur
blob: 98eaad7ef71569834403a3ee760e989f98cce1cb (plain)
1
2
3
4
5
6
7
8
9
val x = List.rev (List.Cons (1, List.Cons (0, List.Nil)))
val y = List.mp (plus 2) x

fun main () : transaction page = return <xml><body>
  {[x]}<br/>
  {[y]}<br/>
  {[Aux.hello]}<br/>
  {List.mapX (fn n => <xml>{[n]}!</xml>) x}
</body></xml>