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

9 lines
110 B
Idris
Raw Normal View History

2019-06-24 02:12:58 +03:00
module Mult
import Nat
public export
mult : Nat -> Nat -> Nat
mult Z y = Z
mult (S k) y = plus y (mult k y)