mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 04:33:45 +03:00
9 lines
110 B
Idris
9 lines
110 B
Idris
|
module Mult
|
||
|
|
||
|
import Nat
|
||
|
|
||
|
public export
|
||
|
mult : Nat -> Nat -> Nat
|
||
|
mult Z y = Z
|
||
|
mult (S k) y = plus y (mult k y)
|