[swift-dev] LazyFilterCollection is not a Collection

Dmitri Gribenko gribozavr at gmail.com
Mon May 9 15:16:50 CDT 2016


On Mon, May 9, 2016 at 11:46 AM, Rob Napier <robnapier at gmail.com> wrote:
> It violates the performance requirements.
> CollectionType.count requires O(1) access if Index is a
> RandomAccessIndexType.

Hi Rob,

We don't have RandomAccessIndexType anymore.

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 <gribozavr at gmail.com>*/


More information about the swift-dev mailing list