|
|
|
|
*[int, int] t = [1, 2];
...
switch t {
case [i1, i2]: return i1 + i2;
}
This can be abbreviated to:
*[int, int] t = [1, 2];
...
let [i1, i2] = t in return i1 + i2;
There can be more then one assignment, like this:
let [t1, t1] = t,
[s1, s2] = s {
// ...
}
The let assignment and binding names with case just creates new name for
an object.
|
|
|
|