You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// drop(while): Return a new version of the LinkedList without the last n items
71
+
/// - Parameter predicate: A closure that takes in the concrete type the node wraps and returns a boolean indicating whether it should drop from the list
72
+
/// - Returns: A new version of the LinkedList without the last n items
73
+
/// - Note: If you pass in an index that is out of the range of the LinkedList an empty LinkedList will be returned
/// prefix(maxLength): Return a new version of the LinkedList with just the first n items
86
+
/// - Parameter maxLength: The number of items to return
87
+
/// - Returns: A new version of the LinkedList with just the first n items
88
+
/// - Note: If you pass in an index that is greater than the size of the LinkedList you'll get the full list. If you send in an index smaller than the size of the LinkedList you'll get an empty list back.
/// prefix(while): Return a new version of the LinkedList with just the first n items
97
+
/// - Parameter predicate: A closure that takes in the concrete type the node wraps and returns a boolean indicating whether it should be included in the new list
98
+
/// - Returns: A a new version of the LinkedList with just the first n items
99
+
/// - Note: If you pass in an index that is greater than the size of the LinkedList you'll get the full list. If you send in an index smaller than the size of the LinkedList you'll get an empty list back.
0 commit comments