Skip to content

Function proposal - at/get() #73

@marcospassos

Description

@marcospassos

We have a use case where we need to get a value by its index.

In that sense, I'd like to suggest introducing a function at/get(iterable $iterable, int $index) : ?int that takes an iterable and returns the item at the specified index.

I'll be glad to provide a PR if welcome.

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