9
I have a homework exercise to do in Ocaml...
My teacher said that we must use these 2 types:
type 'a zapis = Prazen | Zapis of string * 'a;;
type 'a asocpolje = 'a zapis array;;
My problem is that when I create an array:
# let a = Array.make 5 Prazen;;
val a : '_a zapis array = [|Prazen; Prazen; Prazen; Prazen; Prazen|]
I don't know what values can be inserted in this array...
a.(0)<-???
Can someone tell me which value can be inserted in this array?