当前位置: 动力学知识库 > 问答 > 编程问答 >

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?

网友答案:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: