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

Fix python error in introduction.md #151

Merged
merged 2 commits into from
Jun 1, 2023
Merged

Fix python error in introduction.md #151

merged 2 commits into from
Jun 1, 2023

Conversation

garyrob
Copy link
Contributor

@garyrob garyrob commented May 13, 2023

It had:

let compose(f: Callable[[A], B], g: Callable[[B], C]) -> Callable[[A], C]:
    lambda x: g(f(x))

And should have been:

def compose(f: Callable[[A], B], g: Callable[[B], C]) -> Callable[[A], C]:
    return lambda x: g(f(x))

garyrob and others added 2 commits May 12, 2023 18:43
It had:
let compose(f: Callable[[A], B], g: Callable[[B], C]) -> Callable[[A], C]:
    lambda x: g(f(x))
And should have been:
define compose(f: Callable[[A], B], g: Callable[[B], C]) -> Callable[[A], C]:
    return lambda x: g(f(x))
@dbrattli dbrattli merged commit 2b29357 into dbrattli:main Jun 1, 2023
@dbrattli
Copy link
Owner

dbrattli commented Jun 1, 2023

Thanks for fixing!

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