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

Page 18, mult function is wrong #59

Open
PhilAndrew opened this issue Oct 21, 2019 · 2 comments
Open

Page 18, mult function is wrong #59

PhilAndrew opened this issue Oct 21, 2019 · 2 comments

Comments

@PhilAndrew
Copy link

PhilAndrew commented Oct 21, 2019

Idris version 1.3.2

mult : (n, m : Nat) -> Nat
mult Z = Z
mult (S k) = plus m (mult k m)

Should be

mult : (n, m : Nat) -> Nat
mult Z _ = Z
mult (S k) m = plus m (mult k m)
@yurrriq
Copy link
Collaborator

yurrriq commented Oct 22, 2019

Thanks for catching this. Could you please submit a PR and mention me?

@yurrriq
Copy link
Collaborator

yurrriq commented Oct 23, 2019

hmm.. looks like the .lidr is correct, right? I'll work on getting the build env up to date and rebuilding the PDF.

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