On Thu, Dec 31, 2015 at 9:17 PM, David Waite via swift-evolution <
swift-evolution@swift.org> wrote:

>
> - Array has additional mutating methods which are not described by
> CollectionType or any other protocol. The ease of getting a new copy of an
> array and mutating it means code needing the ability to append (for
> instance) today will be declared using an explicit Array type. If this was
> desired to be fixed, it would require more protocols
> (ModifiableCollectionType?)
>
>
There is a protocol, RangeReplaceableCollectionType.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <griboz...@gmail.com>*/
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to