Beginer Help / Structure of caml

View: New views
1 Messages — Rating Filter:   Alert me  

Beginer Help / Structure of caml

by radevster :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Greetings,
 I am very, very, very new to ocaml, and am trying to make a program "test.caml" that brings in two files "1.caml" and "2.caml" that are both big lists of lists of ints... both these files look like....

let new = [
[2;2;2;2;2;2;2;2;2;2;];
[2;2;2;2;2;2;2;2;2;2;];
[2;2;2;2;2;2;2;2;2;2;]];;


so I basically need test.caml to take in two of these .caml files containing list of list of ints, and create a new list to be analyzed which is either the addition of the other 2 lists, the difference, or the product of the first 2 lists (1.caml and 2.caml).

I am not sure how to go about doing this without the use of local variables or loops in caml....help pleease