Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
1
Task/Loops-For/APL/loops-for-1.apl
Normal file
1
Task/Loops-For/APL/loops-for-1.apl
Normal file
|
|
@ -0,0 +1 @@
|
|||
stars ← { ⍵ 1 ⍴ {⍵/'*'}¨⍳⍵ }
|
||||
1
Task/Loops-For/APL/loops-for-2.apl
Normal file
1
Task/Loops-For/APL/loops-for-2.apl
Normal file
|
|
@ -0,0 +1 @@
|
|||
stars ← { ⍵ 1 ⍴ { {1⌷'*',⍵} ¨ ⍳⍵ } ¨ ⍳⍵ }
|
||||
10
Task/Loops-For/APL/loops-for-3.apl
Normal file
10
Task/Loops-For/APL/loops-for-3.apl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
∇result ← stars count; i; j; vec
|
||||
vec ← ⍬
|
||||
:for i :in ⍳ count
|
||||
vec ,← ⊂''
|
||||
:for j :in ⍳ i
|
||||
vec[i],←'*'
|
||||
:endfor
|
||||
:endfor
|
||||
result ← count 1 ⍴ vec
|
||||
∇
|
||||
Loading…
Add table
Add a link
Reference in a new issue