1
0
Fork 0
forked from fun/fun

Added nested loop example and some more comment in other examples.

This commit is contained in:
Johannes Findeisen 2025-09-15 03:34:49 +02:00
commit d67c541824
5 changed files with 137 additions and 0 deletions

View file

@ -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
*/