问题描述:

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?

网友答案:

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

相关阅读:
Top