last item. no output

"Roelof Wobben [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
Hello,

I try to solve the first challenge from the 99 ocaml problems where I 
have to find the last item in a list.

So I have this :

let rec last list =
    match list with
    | [] -> []
    | [x] -> x
    | hd :: tl  -> last tl
    ;;

I saved it into a file called test.ml and build it with corebuild 
test,native.
But when I do ,/test.native [] or ./test.native [1] I see total no output.

Roelof
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.