June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -0,0 +1,12 @@
|
|||
Base.start(ll::LinkedList) = ll.head
|
||||
Base.done(ll::LinkedList{T}, st::AbstractNode{T}) where T = st isa EmptyNode
|
||||
Base.next(ll::LinkedList{T}, st::AbstractNode{T}) where T = st.data, st.next
|
||||
|
||||
lst = LinkedList{Int}()
|
||||
push!(lst, 1)
|
||||
push!(lst, 2)
|
||||
push!(lst, 3)
|
||||
|
||||
for n in lst
|
||||
print(n, " ")
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue