Commit ec7422f0 authored by Anders Nilsson's avatar Anders Nilsson
Browse files

Test update

parent 95210551
module SLL
export SLLNode
export SLLNode,add
type SLLNode
data
next::SLLNode
SLLNode() = new()
# SLLNode(x) = (node = new(); node.data = x; node.next = node)
# SLLNode() = new()
SLLNode(x) = (node = new(); node.data = x; node.next = node)
end
# function add(list::SLLNode,new::SLLNode)
# list.next = new
# list
# end
function add(list::SLLNode,data)
list.next = new SLLNode(data)
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment