Skip to content

[Sequence] Add "intermediate" methods - #28

Open
nikophil wants to merge 1 commit into
noctud:0.2.xfrom
nikophil:feature/sequence
Open

[Sequence] Add "intermediate" methods#28
nikophil wants to merge 1 commit into
noctud:0.2.xfrom
nikophil:feature/sequence

Conversation

@nikophil

@nikophil nikophil commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

related to #23

@nikophil
nikophil changed the base branch from 0.1.x to 0.2.x July 27, 2026 14:31
@nikophil nikophil changed the title feature/sequence [Sequence] Add intermediate methods Jul 27, 2026
Comment thread src/Sequence/Sequence.php
* @return Sequence<E>
*/
#[NoDiscard]
public function onEach(Closure $action): Sequence;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm introducing onEach(): Sequence before forEach(): void

there is currently no BC break

@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@nikophil nikophil changed the title [Sequence] Add intermediate methods [Sequence] Add "intermediate" methods Jul 27, 2026
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.

1 participant