Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
9
Task/Stack/TAV/stack-2.tav
Normal file
9
Task/Stack/TAV/stack-2.tav
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
main(params):+
|
||||
stack =: new row \ a row is a nice stack
|
||||
?# v =: tuple 1,3,5,7,11,13 give values
|
||||
row stack push v \ push some primes
|
||||
print '*' _ stack[stack.Count] \ get top
|
||||
?# i =: from 1 upto 7
|
||||
? i %% 3 = 0
|
||||
print '*' _ stack[stack.Count]
|
||||
print stack::pop \ class function syntax used
|
||||
Loading…
Add table
Add a link
Reference in a new issue