improving '$' to work with other functions (eg: indexed)

Timothee Cour thelastmammoth at gmail.com
Thu Oct 31 02:46:32 PDT 2013


can we support this and similar use cases ?

import std.range;
void main(){
  auto a=[1,2,3,4];
  auto b1=a.indexed([0,a.length-1]);//OK
  auto b2=a.indexed([0,$-1]);//NG
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20131031/d13c98bb/attachment.html>


More information about the Digitalmars-d-learn mailing list