03 Modules and Structures

Well that's an issue! OCaml is trying to use the most recent definition of map, which is the one for 'a tree, not 'a mylist.

We can fix this with a module.

Awesome, now we have modules!

Hmm that still didn't work. That's because we need to specify the name.

Note that we have an int MyList.mylist, not a MyList.int mylist or anything like that.

All three of these are valid ways of specifying the type of a tree node.