Search code examples
sml

What is val it in sml?


I have an example looks like this.

type int_pair = int * int;

val it:int_pair = (1,1);

I don't quite understand what does val it means and in what condition we will use val.

Does it mean we are assigning value to the int_pair it?


Solution

  • Yes, it is bound to the value (1, 1) of type int_pair; see documentation.