func drop(@noescape while predicate: (Self.Iterator.Element) throws -> Bool)
rethrows -> Self.SubSequence
func prefix(@noescape while predicate: (Self.Iterator.Element) throws ->
Bool) rethrows -> Self.SubSequence
Now I may just be a simple country hyper-chicken, but so I don’t know if there
are other languages that inspired the names of these functions, but it ruffles
my feathers that we have the words “drop” and “prefix” for two functions that
are kind of symmetric, instead of symmetric words like “drop” and “keep” or
“prefix” and “suffix”.
Not that I’m in love with those particular examples, I’m just saying I’d like
it if there were some symmetry in the words that suggested the symmetry of the
functions. But, again, maybe these are, like, some standard terms that I just
missed out on and everyone would hate it if we didn’t use the standard name,
like if we renamed “cos()” to “adjacentOverHypotenuse()”.
Ba-kawk,
-Wil
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution