Idris2-boot/tests/idris2/import001/Mult.idr
2019-06-11 11:54:47 +01:00

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)