Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipel and piper do the same thing #10

Open
DavidDTA opened this issue Sep 1, 2017 · 1 comment
Open

pipel and piper do the same thing #10

DavidDTA opened this issue Sep 1, 2017 · 1 comment

Comments

@DavidDTA
Copy link

DavidDTA commented Sep 1, 2017

Proof of concept:
https://ellie-app.com/4bM4dYd2VNYa1/1

I would expect that using pipel would append "12" on each click and piper would append "21". However both versions append "21".

If this is not a bug, it warrants documentation. If it is, it is a one-character fix (change List.foldl to List.foldr in the definition of pipel, although actually I think it's better to use List.foldl for both and switch the operators for a whopping total of 5 characters).

@Fresheyeball
Copy link
Owner

Feel free to 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

No branches or pull requests

2 participants