This file contains hidden or 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
| public class SinglyLinkedList<Element> { | |
| private var head: SinglyLinkedListNode<Element>? | |
| private var tail: SinglyLinkedListNode<Element>? | |
| public var isEmpty: Bool { | |
| return head == nil | |
| } | |
| public var count: Int { | |
| var node = head |
NewerOlder