auto get() { return idx.map!(ref (i) => a[i]); } auto get() { return idx.map!((i) => tuple(&a[i], i)); }
引用不行时,用指针.
指针