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
|
|
@ -28,3 +28,28 @@ fun make()
|
|||
|
||||
for v in make()
|
||||
print(v) // prints: 7, 9, 11
|
||||
|
||||
/* Expected output:
|
||||
1
|
||||
2
|
||||
3
|
||||
10
|
||||
20
|
||||
30
|
||||
[1, 2]
|
||||
1
|
||||
2
|
||||
[3, 4]
|
||||
3
|
||||
4
|
||||
10
|
||||
20
|
||||
30
|
||||
40
|
||||
50
|
||||
20
|
||||
30
|
||||
7
|
||||
9
|
||||
11
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue