Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active August 2, 2018 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/96b7248bb9cd22d4743147c0264f4412 to your computer and use it in GitHub Desktop.
Save laevandus/96b7248bb9cd22d4743147c0264f4412 to your computer and use it in GitHub Desktop.
struct LinkedList<T> {
final class Node<T> {
let value: T
init(_ value: T, next: Node<T>? = nil) {
self.value = value
self.next = next
}
var next: Node<T>? = nil
}
var first: Node<T>? = nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment