mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-19 10:51:35 +03:00
9 lines
117 B
Idris
9 lines
117 B
Idris
|
module Mult
|
||
|
|
||
|
import public Nat
|
||
|
|
||
|
public export
|
||
|
mult : Nat -> Nat -> Nat
|
||
|
mult Z y = Z
|
||
|
mult (S k) y = plus y (mult k y)
|