Version française
Home     About     Download     Resources     Contact us    
Browse thread
arrays and type variables...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Don Syme <dsyme@m...>
Subject: arrays and type variables...

Shouldn't "[| [] |]" count as a value??

bash$ ocaml
        Objective Caml version 2.00

# let x = [| [] |];;
val x : '_a list array = [|[]|]
# let x = [];;
val x : 'a list = []
# let x = [| |];;
val x : 'a array = [||]
#

Cheers,
Don