Skip to content

Conversation

bpolaszek
Copy link
Owner

@bpolaszek bpolaszek commented May 30, 2024

Just stumbled upon requiring the array_chunk function on a generator - let's introduce iterable_chunk()!

@bpolaszek bpolaszek force-pushed the feature/iterable-chunk branch from 7485baf to 1e5f3af Compare May 30, 2024 12:13
@bpolaszek bpolaszek marked this pull request as ready for review May 30, 2024 13:14
@bpolaszek
Copy link
Owner Author

@simPod would you have a few minutes reviewing this? Thx!

Co-authored-by: Simon Podlipsky <simon@podlipsky.net>
@bpolaszek bpolaszek merged commit a8d257b into master Jun 4, 2024
@bpolaszek bpolaszek deleted the feature/iterable-chunk branch June 4, 2024 13:23
return new self(new WithoutKeysTraversable($this->iterable));
}

/** @return iterable<int, array<TKey, TValue>> */
Copy link
Contributor

Choose a reason for hiding this comment

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

/** @return iterable<int, iterable<TKey, TValue>> */

Copy link
Owner Author

Choose a reason for hiding this comment

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

shit - didn't notice on time static analysis was failing, will open another PR

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