Skip to content

Commit 745cc1a

Browse files
committed
Remove SinglyLinkedList's initializer that takes a value as an argument, to rely exclusively on mutating methods to edit the list.
1 parent 06d29b7 commit 745cc1a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Singly Linked List/SinglyLinkedList.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,6 @@ public struct SinglyLinkedList<T> {
8282

8383
// MARK: INITIALIZERS
8484

85-
/// Creates a list with a single element
86-
///
87-
/// - Parameter value: element to populate the list with
88-
public init(value: T) {
89-
self.init()
90-
self.append(value: value)
91-
}
92-
93-
9485
/// Creates an empty list
9586
public init() {
9687
self.storage = IndirectStorage()

0 commit comments

Comments
 (0)