Creating a Sub-view of a non - RA (hasSlicing) range.
monarch_dodra
monarch_dodra at gmail.com
Sun Jul 1 07:48:24 PDT 2012
On Sunday, 1 July 2012 at 13:22:17 UTC, monarch_dodra wrote:
> Something like...
> "inverseRangeBegin(R big, R small)": Creates a range that
> begins where big starts, and ends where small starts. R must be
> at least bidirectional. small must be included inside big.
>
> From an implementation point of view, I think any container,
> and even arrays, can do it. I pretty sure this is compeltly
> feasable. Just off the top of my head. I'm sure there are
> brighter thinkers out there that have put more thought into it.
Or not. On second thought, while I'm sure there might be an
implementable solution, I doubt it could be done with any real
safety guarantees.
More information about the Digitalmars-d
mailing list