aboutsummaryrefslogtreecommitdiff
path: root/examples/int.fusp
diff options
context:
space:
mode:
authorCamil Staps2018-04-03 20:06:13 +0200
committerCamil Staps2018-04-03 20:06:13 +0200
commitb5917471efab37e60949b380a24ecc35e2946203 (patch)
treee1359698e10bad08ac2c32e625d062ba8773b83f /examples/int.fusp
parentBeautify Makefile (diff)
Extend examples
Diffstat (limited to 'examples/int.fusp')
-rw-r--r--examples/int.fusp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/int.fusp b/examples/int.fusp
index fe1e32d..b6ed1ac 100644
--- a/examples/int.fusp
+++ b/examples/int.fusp
@@ -8,3 +8,6 @@ gt a b = code gt a b;
le a b = code le a b;
lt a b = code lt a b;
ne a b = code ne a b;
+
+pow _ 0 = 1;
+pow x n = mul x (pow x (sub 1 n));