Skip to content

column ranges going from positive to negative (from end) - should be straight #3

Description

@arielf

Currently, these ranges (e.g. 2--1) are implemented as wrap-arounds (going right to left) because they are interpreted as 'reverse order' ranges.

It would be nicer if we could support a straight (left to right) expansion of them.

The problem is that the number of fields is not known till actually reading each line, so expand_list() should be lazily delayed till parse time, and on each line which is incompatible with the current implementation.

This is the only case out of 4 which is not 'natural'. the other 3 cases: positive-positive, negative-negative, and negative-positive are all implemented as might be reasonably and optimally expected by the user.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions