Skip to content

Conversation

@lue-bird
Copy link
Collaborator

@lue-bird lue-bird commented Dec 26, 2025

List.foldr (++) "" list
--> String.concat list

List.foldr (++) [] list
--> List.concat list

Implementing the first simplification closes #317
(Also when reviewing, the initial fix contains a bug that is later fixed)

Also fixes a rare bug when reducing lambdas

@lue-bird lue-bird marked this pull request as draft December 26, 2025 18:16
@lue-bird lue-bird marked this pull request as ready for review December 26, 2025 18:22
@jfmengels
Copy link
Owner

Looks great, thanks!

@jfmengels jfmengels merged commit f56bb6e into jfmengels:main Dec 27, 2025
2 checks passed
@lue-bird lue-bird deleted the foldr-++-empty branch December 27, 2025 14:40
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.

List.foldr (++) ""

2 participants