[Ur] list syntax

Gergely Buday gbuday at gmail.com
Thu Sep 1 05:30:01 EDT 2011


Hi,

I tried to compile

val n = [ 1, 2, 3 ]

fun main () = return <xml> Hello World! </xml>

but got

/home/gergoe/local/sandbox/foo.ur:1:0-1:3: syntax error: replacing
VAL with  CON
Parse failure

Is the only way to define a list in Ur is to write

1 :: 2 :: 3 :: []   ?

- Gergely



More information about the Ur mailing list