I'm not sure what the LISP you gave means, but what it looks to me what you're trying to do is type myarray = None | Some of int array;; let a = ref None;; let get_array () = match !a with None -> ( let array = Array.make 10 0 in a := Some array; !array ) | Some array -> array;;
about | contact Other archives ( Real Estate discussion Medical topics )
Mailing lists
Newsgroups
RFC archive