Skip to content

Unexpected to_a / each behaviour #1

@alanfranz

Description

@alanfranz

Hello,
thank your for your library, it's saving me a lot of time.

I've just got an issue by the way: I think the to_a / each behaviour is inconsistent with what I'd expect from a range (and I'd really like a RangeWithGaps to be a dropin replacement for a Range); each() should IMHO return each element in the inner range, and to_a should flatten & join all contained ranges in a single array.

What do you think about such approach?If you think it's fine I could implement it and put forward a pull request.

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