software-foundations icon indicating copy to clipboard operation
software-foundations copied to clipboard

Page 18, mult function is wrong

Open PhilAndrew opened this issue 6 years ago • 2 comments

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)

PhilAndrew avatar Oct 21 '19 13:10 PhilAndrew

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

yurrriq avatar Oct 22 '19 23:10 yurrriq

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

yurrriq avatar Oct 23 '19 06:10 yurrriq