Skip to content

Added \iter\last()#101

Open
Bilge wants to merge 2 commits intonikic:masterfrom
Bilge:last
Open

Added \iter\last()#101
Bilge wants to merge 2 commits intonikic:masterfrom
Bilge:last

Conversation

@Bilge
Copy link

@Bilge Bilge commented May 17, 2025

Although we can trivially get the first element of an iterable with \iter\take(1, ...), it is non-trivial to get the last value.

Fixed PHP 7 compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants