library: implement `string.rsplit(None, d)` where `d > 0`
Closed this issue · 2 comments
alandonovan commented
$ python
>>> "a b c d e".rsplit(None, 2)
['a b c', 'd', 'e']
$ skylark
Traceback (most recent call last):
<stdin>:1:15: in <toplevel>
Error: rsplit(None, 2): maxsplit > 0 not yet supported
gsquire commented
Can I take a shot at this?
alandonovan commented
Please do! It's a little fiddly, which is why I left it as a TODO.