Myes
This commit is contained in:
11
3/assig.org
11
3/assig.org
@ -98,13 +98,10 @@ Hint: If you want to make use of addition in the implementation of multiplicatio
|
||||
{ Zero() -> Zero()
|
||||
; Succ(n) -> add m (mult n)
|
||||
}
|
||||
#+end_src
|
||||
where we substitute ~add~ for the following:
|
||||
#+begin_src chi
|
||||
\m. rec add = \n. case n of
|
||||
{ Zero() -> m
|
||||
; Succ(n) -> Suc(add n)
|
||||
}
|
||||
[ add <- \m. rec add = \n. case n of
|
||||
{ Zero() -> m
|
||||
; Succ(n) -> Suc(add n)
|
||||
}]
|
||||
#+end_src
|
||||
|
||||
** (2p) [BN]
|
||||
|
||||
Reference in New Issue
Block a user