Created
January 27, 2017 08:20
-
-
Save twof/69c23404147abb348f1f34e2d88c3246 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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