M
Mage
Hello,
suppose that:
a = 'hello there'
and I need 'llo there'
a[2,a.size] works, but I find it ugly because the given length is larger
than the real length of the result.
a[2,a.size - 2] is okay, but it is not DRY.
Is there any elegant way, like a[2:] in Python?
(Well, I know that I can write my own [] method for String class.)
Mage
suppose that:
a = 'hello there'
and I need 'llo there'
a[2,a.size] works, but I find it ugly because the given length is larger
than the real length of the result.
a[2,a.size - 2] is okay, but it is not DRY.
Is there any elegant way, like a[2:] in Python?
(Well, I know that I can write my own [] method for String class.)
Mage