mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-26 05:01:34 +03:00
9 lines
219 B
Plaintext
9 lines
219 B
Plaintext
1/1: Building power (power.idr)
|
|
Main> Main.cube : Nat -> Nat
|
|
cube = \x => mult x (mult x (mult x (const 1 x)))
|
|
Main> 27
|
|
Main> Main.cube' : Nat -> Nat
|
|
cube' = \x => mult (mult (plus x 0) x) x
|
|
Main> 27
|
|
Main> Bye for now!
|