Ah yeah true
Why not (5..).with_width(10)
or something of the sort instead?
1 Like
It didn't even cross my mind that we could do it with a[i..][..n]
, and in hindsight, it is so obvious. I will add this to the draft as an alternative syntax.
I take your point regarding the inclusive range syntax (start..=+inclusive_offset
), so I will add this as an alternative to the current one.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.