Publications
User Guide
Reference documentation
sisl
sisl.geom
sisl.physics
sisl.io
sisl.constant
sisl.unit
sisl.shape
sisl.utils
sisl.utils.
list2str
Convert a list of elements into a string of ranges
Examples
>>> list2str([2, 4, 5, 6]) '2, 4-6' >>> list2str([2, 4, 5, 6, 8, 9]) '2, 4-6, 8-9'