[swift-evolution] [Pitch] range.contains(anotherRange)

Yuta Koshizawa koher at koherent.org
Wed Aug 9 01:16:25 CDT 2017

2017-08-09 12:50 GMT+09:00 Robert Bennett <rltbennett at icloud.com>:

It’s a shame that Range can’t be made to conform to SetAlgebra as it lacks
the required initializers. Is there anything that can be done about this?
Actually, it makes me wonder whether those initializers should even be a
part of SetAlgebra — why must something implementing SetAlgebra be able to
be initialized as empty or from a finite sequence?

I am not sure if removing initializers from `SetAlgebra` does not cause any
problems in the standard library, it seems reasonable for me if range types
could adopt `SetAlgebra`.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170809/abd333e7/attachment.html>

More information about the swift-evolution mailing list