Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
8
Task/Stack/Julia/stack.julia
Normal file
8
Task/Stack/Julia/stack.julia
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
stack = {}
|
||||
push!(stack, 1)
|
||||
push!(stack, 2)
|
||||
push!(stack, 3)
|
||||
println(pop!(stack)) # 3
|
||||
println(length(stack)) # 2
|
||||
empty!(stack)
|
||||
println(length(stack)) # 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue