Programming Language--Section1

2015-12-20  本文已影响0人  木木瓜

Conditional expression

if e1 then e2 else e3

Where if, then, and else are keywords and e1, e2 and e3 are subexpressions.

if 8 < 10 then "Hello!" else "So bad."

Then the return of which is

val it = "Hello!" : string























上一篇下一篇

猜你喜欢

热点阅读