[swift-evolution] [Pitch] range.contains(anotherRange)
Yuta Koshizawa
koher at koherent.org
Wed Aug 9 00:49:09 CDT 2017
2017-08-09 12:23 GMT+09:00 Xiaodi Wu <xiaodi.wu at gmail.com>:
>
For consistency, the name for this function would be `isSuperset(of:)`, and
it would be equally interesting to have `isStrictSuperset(of:)`,
`isSubset(of:)`, `isStrictSubset(of:)` and `isDisjoint(with:)`--all
currently available for types that conform to `SetAlgebra`.
Thank you for your feedback. It certainly seems better to rename `contains`
to `isSuperset(of:)`. Also I'll try to implement `isStrictSuperset(of:)`
and so on.
--
Yuta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170809/b44592d3/attachment.html>
More information about the swift-evolution
mailing list