Array-end $ indexing hack courtesy of Steve Schveighoffer https://forum.dlang.org/post/rl7a56$nad$1@digitalmars.com
Requires in addition to opDollar returning a bespoke non-integral type a series of overloads for opIndex and opSlice taking this type
See Implementation
Array-end $ indexing hack courtesy of Steve Schveighoffer https://forum.dlang.org/post/rl7a56$nad$1@digitalmars.com
Requires in addition to opDollar returning a bespoke non-integral type a series of overloads for opIndex and opSlice taking this type