> 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