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

In Chapter 07: Hindley-Milner and Me, why is it said that compose(head, map(f)) is faster than compose(f, head)? #648

Open
immadolf opened this issue Apr 26, 2024 · 0 comments

Comments

@immadolf
Copy link

image

I can't understand this sentence, it seems to me that the time complexity of compose(f, head) is O(1) and the complexity of compose(head, map(f)) is O(n), can anyone help me ?

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

1 participant