[swift-dev] SR-122 / CollectionsMoveIndices.swift Prototype

Dmitri Gribenko gribozavr at gmail.com
Wed Mar 9 17:58:50 CST 2016


On Wed, Mar 9, 2016 at 3:52 PM, Shawn Erickson <shawnce at gmail.com> wrote:
> I see a handful of issues like the following coming about because of changes
> to `Range`. In the past `Range` conformed to `Collection` so `count` came
> from `Collection` which returned a type of `ForwardIndex.Distance` (e.g.
> `_SignedInteger`). It now comes from `Strideable`’s `distance(to:)` which
> returns `Strideable.Stride` (e.g. `SignedNumber`).

Yeah, we had those.  Try pulling from the branch, I have resolved some
of these issues.  I'll be working on HashedCollections next, feel free
to take Flatten and FlatMap.

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