std.v2020.algorithm etc[ WAS: Is run.d going to be expand for runtime and the phobos library?]
jmh530
john.michael.hall at gmail.com
Sat Jun 20 14:45:09 UTC 2020
On Saturday, 20 June 2020 at 12:26:55 UTC, Petar Kirov
[ZombineDev] wrote:
> [snip]
>
> typeof(this) is only possible for member function based
> implementations. Otherwise the implementation for arrays would
> be:
>
> inout(T)[] rest(T)(input(T)[] array) { return array[1 .. $]; }
>
> https://run.dlang.io/gist/run-dlang/7a4e5872ee26c083b916303fe36ac43b?compiler=dmd
Gotcha, thanks.
More information about the Digitalmars-d
mailing list