The same is true for protocols such as `RandomAccessCollection` and `MutableCollection`.
> On 6 Jul 2016, at 22:07, Tino Heth <2...@gmx.de> wrote: > > >> I thought this was it, but none of the default implementations of >> RangeReplaceableCollection seem to use this empty initialiser > I haven't worked with RangeReplaceableCollection yet, but I wasn't speaking > of how the protocol is used in the libraries, but by "regular users": > > class Factory<T: RangeReplaceableCollectionType> { > func create() -> T{ > return T() > } > } > > Doing something like this can become really hard when you need parameters.
_______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users