Skip to content

Instantly share code, notes, and snippets.

@twof
Created January 27, 2017 08:20
Show Gist options
  • Save twof/69c23404147abb348f1f34e2d88c3246 to your computer and use it in GitHub Desktop.
Save twof/69c23404147abb348f1f34e2d88c3246 to your computer and use it in GitHub Desktop.
class Node<T>{
var content: T
var next: Node?
init(content: T, next: Node?){
self.content = content
self.next = next
}
}
func appendNode<T>(content: T){
var newNode = Node(content: content)
//tail.next = newNode
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment