Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Loops-Nested/Tailspin/loops-nested.tailspin
Normal file
15
Task/Loops-Nested/Tailspin/loops-nested.tailspin
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
sink find20
|
||||
def a: $;
|
||||
1 -> #
|
||||
when <..$a::length> do def i: $;
|
||||
'$#10;' -> !OUT::write
|
||||
1 -> \(
|
||||
when <$a($i)::length~..> do $i + 1 !
|
||||
otherwise def j: $;
|
||||
def val: $a($i;$j);
|
||||
' $val;' -> !OUT::write
|
||||
$val -> \(<~=20> $j + 1 ! \) -> #
|
||||
\) -> #
|
||||
end find20
|
||||
|
||||
[1..10 -> [1..10 -> 20 -> SYS::randomInt -> $ + 1]] -> !find20
|
||||
Loading…
Add table
Add a link
Reference in a new issue