Skip to content

Handle infinite, endless and beginless ranges #5

Description

@xunker

We can do endless ranges in Ruby < 2.6 with (0..Float::INFINITY), and in Ruby >= 2.6 with (0..) or (0..nil).

Also, in Ruby 2.7 we now have beginless ranges: [..100]

These may already work, because they can be worked with as an array, but we need to add tests for that.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions