Skip to content

Conversation

@squell
Copy link
Member

@squell squell commented Mar 27, 2025

Based on #1036, rewriting the .fold().

Commits are done step-by-step to show that the rewrite behaves equivalently (except for 75554ac, but that is fixed in the final beautiful result).

You can review this commit by commit (this will show you my "I'm not trying to be clever" careful editing of the code), but you can also just look at the final result which will be very easy to review.

Obviously we're going to squash these commits.

A hearty thanks to @cikzh for rubber ducking.

@squell squell closed this Mar 27, 2025
@squell squell deleted the demo branch March 27, 2025 18:06
@squell squell restored the demo branch March 27, 2025 18:06
@squell squell reopened this Mar 27, 2025
@squell squell changed the title Experiments Rewrite .fold() into something that is immediately readable Mar 27, 2025
@squell
Copy link
Member Author

squell commented Mar 27, 2025

(Sorry for the branch name, I thought I could rename that later.)

@squell squell marked this pull request as ready for review March 27, 2025 18:07
@squell squell added minor minor issue, PR without an issue ❤️+🦀 labels Mar 27, 2025
@squell squell enabled auto-merge (squash) March 27, 2025 18:30
@squell squell merged commit 7965a5c into main Mar 28, 2025
30 checks passed
@squell squell deleted the demo branch March 28, 2025 09:21
@squell squell restored the demo branch March 28, 2025 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor minor issue, PR without an issue ❤️+🦀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants