How do i run Ocaml function from the command line in Windows

542 views Asked by At

I have a question, am new to Ocaml THE functional programming. I have simple function of Ocaml which calculates a total of two numbers. Am using visual studio code. here is a sample of my function : let cubic a b = a + b ;; so, how do i run my the cmd line ? how do i type " cubic 3 3 " such that is returns 6

let cubic a b = a + b ;;
0

There are 0 answers