@@ -85,11 +85,11 @@ Some examples of specifiers are:
8585 which is ` x U64, y U65 ` . Data type specifiers contain no body.
8686- value specifier:
8787 ```
88- let value: U8 := 5
88+ val value: U8 := 5
8989 ```
90- where ` let value` is a * value declaration* , separated with colon from the type information, which is ` U8 ` . Next,
90+ where ` val value` is a * value declaration* , separated with colon from the type information, which is ` U8 ` . Next,
9191 the body contains the value assigned to the named value instance. Value specifications may have data type omitted in
92- situations when it can be inferred; for instance, we can also write the specifier above as ` let value := 5#U8` , where
92+ situations when it can be inferred; for instance, we can also write the specifier above as ` val value := 5#U8` , where
9393 ` #U8 ` is a type annotation.
9494
9595<div ></div >
@@ -165,7 +165,7 @@ following manner:
165165```
166166fx twoArgsFn: x U32, y U32 -> U32
167167
168- let coord := x U32, y U32
168+ val coord := x U32, y U32
169169twoArgsFn coord
170170```
171171
@@ -196,7 +196,7 @@ with `|:`:
196196```
197197data WorldDirection: north | south | west | east
198198
199- let sample: WorldDirection
199+ val sample: WorldDirection
200200
201201sample >| – match sample {
202202 north |? doSomething1 – north => {}
@@ -501,7 +501,7 @@ type may be omitted, and in this case if is inferred by the compiler from the bo
501501
502502Finally, there is the multiline forms of lambda expressions:
503503```
504- let lambdaFn := .\
504+ lambda lambdaFn
505505 statement1
506506 statement2
507507```
@@ -523,7 +523,7 @@ someFn arg1, .\(x U8 -> U16
523523
524524The type of the lambda expression is ` .\ input -> output ` , and this type may be used in type annotations:
525525```
526- let squared: .\U8 -> U16 := .\pow 2
526+ val squared: .\U8 -> U16 := .\pow 2
527527```
528528
529529<!-- TODO: add on currying:
0 commit comments