cli icon indicating copy to clipboard operation
cli copied to clipboard

Option in `cli_vec()` to always show the start and end of a collapsed vector

Open lionel- opened this issue 2 years ago • 0 comments

This seems more informative:

i Locations 100, 101, 102, ..., 109, and 110 don't exist, there are only 26 elements.

Than:

i Locations 100, 101, 102, 103, 104, ... don't exist, there are only 26 elements.

According to https://english.stackexchange.com/questions/166120/when-using-ellipsis-to-omit-list-items-is-a-comma-required-after-the-last-item, a comma after ... will be needed in this case.

Possibly showing the last two elements is enough in general? Or maybe the number of leading and trailing elements should be balanced.

lionel- avatar Feb 15 '22 11:02 lionel-