Add set index in list, and update lib+examples+tests
This commit is contained in:
parent
8d12c0bdf8
commit
0f905a7fea
12 changed files with 117 additions and 60 deletions
|
|
@ -9,3 +9,10 @@ fn neighbours(n: int) -> (int, int) {
|
|||
}
|
||||
|
||||
assertEq(neighbours(2), (1, 3))
|
||||
|
||||
a := (1, 2)
|
||||
assertEq(a, (1, 2))
|
||||
|
||||
(x, y) := a
|
||||
assertEq(x, 1)
|
||||
assertEq(y, 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue