Idris2/tests/idris2/import002/Mult.idr

9 lines
110 B
Idris
Raw Normal View History

module Mult
import Nat
public export
mult : Nat -> Nat -> Nat
mult Z y = Z
mult (S k) y = plus y (mult k y)