Closed
Description
Python's "".split()
method has a useful feature: When invoked without any arguments, the string is split according to any whitespace, and empty strings are discarded from the result:
>>> s = "X Y\tZ"
>>> s.split(" ")
['X', 'Y\tZ']
>>> s.split("\t")
['X Y', 'Z']
>>> s.split()
['X', 'Y', 'Z']
Having a similar logic in ABS would make it much easier to split strings without having to resort to calling .trim()
on the resulting elements.