Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/Loops-Nested/Lasso/loops-nested.lasso
Normal file
21
Task/Loops-Nested/Lasso/loops-nested.lasso
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
local(a) = array(
|
||||
array(2, 12, 10, 4),
|
||||
array(18, 11, 9, 3),
|
||||
array(14, 15, 7, 17),
|
||||
array(6, 19, 8, 13),
|
||||
array(1, 20, 16, 5)
|
||||
)
|
||||
|
||||
// Query expression
|
||||
with i in delve(#a) do {
|
||||
stdoutnl(#i)
|
||||
#i == 20 ? return
|
||||
}
|
||||
|
||||
// Nested loops
|
||||
#a->foreach => {
|
||||
#1->foreach => {
|
||||
stdoutnl(#1)
|
||||
#1 == 20 ? return
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue