Added nested loop example and some more comment in other examples.
This commit is contained in:
parent
0b48aa3e0c
commit
d67c541824
5 changed files with 137 additions and 0 deletions
|
|
@ -45,3 +45,16 @@ fun pair(x, y)
|
|||
p = pair(7, 9)
|
||||
print(p) // -> [7, 9]
|
||||
print(p[1]) // -> 9
|
||||
|
||||
/* Expected output:
|
||||
[1, 2, 3]
|
||||
3
|
||||
[1, 2, 13]
|
||||
16
|
||||
[0, 1, 4, 9, 16]
|
||||
[[1, 2], [3, 4], [5, 6]]
|
||||
3
|
||||
[10, 20, 30]
|
||||
[7, 9]
|
||||
9
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue