Idris2-boot/tests/idris2/import001/Mult.idr

9 lines
117 B
Idris
Raw Normal View History

2019-06-11 13:54:47 +03:00
module Mult
import public Nat
public export
mult : Nat -> Nat -> Nat
mult Z y = Z
mult (S k) y = plus y (mult k y)