We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23c1514 commit cdbfc4fCopy full SHA for cdbfc4f
stdlib/public/core/BidirectionalCollection.swift
@@ -204,6 +204,12 @@ extension BidirectionalCollection where SubSequence == BidirectionalSlice<Self>
204
205
extension BidirectionalCollection where SubSequence == Self {
206
/// Removes and returns the last element of the collection.
207
+ ///
208
+ /// popLast() should generally be preferred over removeLast()
209
+ /// since it is safer to use.
210
211
+ /// You should only opt for removeLast() if you are certain the collection
212
+ /// is not empty and performance is an issue.
213
///
214
/// - Returns: The last element of the collection if the collection has one
215
/// or more elements; otherwise, `nil`.
0 commit comments