Avatar
omochimetaru 1/31/2020 9:36 AM
@swift-5.1.5 var array = [5, 4, 3, 2, 1] var slice = array[1...3] slice.sort() array[1...3] = slice print(array) // 5, 2, 3, 4, 1