Why SwiftUI onDelete uses IndexSet?

Does any one know why onDelete method uses an IndexSet for delete operation? I couldn't find any way to delete more than one row from a List.

I understand it is to optimise (providing a range instead of list of individual values):

https://www.hackingwithswift.com/forums/swift/indexset-explained/2035

See also:

https://www.hackingwithswift.com/books/ios-swiftui/deleting-items-using-ondelete

Why SwiftUI onDelete uses IndexSet?
 
 
Q