Skip to content

Allow Range start to equal Range End #945

Closed
@florent-martineau

Description

@florent-martineau

Let's say you want to take the 20th row.

In the playground:

  • If I do take 20 I'll get the first 20 rows, not exactly the 20th.
  • If I do take 20..20 I get an error "Range end is before its start.".
  • If I do take 20..21 I'll get rows 20 and 21, then if I do take 1 it will throw me an error

There are workarounds, but I think it would be a nicer API to simply say take 20..20?

This fails because Range start cannot equal Range end. Maybe we could also start to equal end in a Range?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions