Swift deprecate i++ and c-style for loop

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 24 08:49:39 PST 2016


On Wednesday, 24 February 2016 at 16:37:04 UTC, Suliman wrote:
> func slices() {
>     var array = ["First", "Second", "Third", "Fourth"]
>     array.removeLast()
>     array.removeFirst()
> }
>
> also look very intuitive.

Have a look at http://dlang.org/phobos/std_range.html#dropOne.

  — David


More information about the Digitalmars-d mailing list