Re: slicing in Swift
Re: slicing in Swift
- Subject: Re: slicing in Swift
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 07 Sep 2016 09:16:09 +0700
> On 7 Sep 2016, at 07:55, Jonathan Hull <email@hidden> wrote:
>
> I realized my comment may not have been clear.
Probably clear enough.
> Here is the actual code (written in Mail):
>
> var numbers: [UInt64] = …
>
> func numbers( upTo nbr: Int ) -> [UInt64]
> {
> return Array( numbers[ 0 ..< nbr ] )
> }
Excellent. Exactly what I needed. Thanks a lot!.
Kind regards,
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden