Skip to content

first() and last() on empty ranges #2537

@JeffBezanson

Description

@JeffBezanson

first and last give errors for other collections where they're defined, but not for ranges. In typical uses, f(first(r), length(r)) is called, and since length(r)==0 nothing bad happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break codeneeds decisionA decision on this change is needed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions