https://github.com/apple/swift/blob/master/CHANGELOG.md

func slices() {
    var array = ["First", "Second", "Third", "Fourth"]
    array.removeLast()
    array.removeFirst()
}

also look very intuitive. I looked at std.algorithm.mutation and did not find anything for this. I see only simple remove option.


Reply via email to