diff options
author | Camil Staps | 2016-08-26 00:48:36 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-26 00:48:36 +0200 |
commit | 296f94bc51024cf4e1e96a2f8a2f419c618b8afb (patch) | |
tree | 5fbdbb316f3bc9755345a61cec2418bbdd4b3e4c /examples | |
parent | Linking C functions (diff) |
Added twice example
Diffstat (limited to 'examples')
-rw-r--r-- | examples/twice.fusp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/twice.fusp b/examples/twice.fusp new file mode 100644 index 0000000..8f50b83 --- /dev/null +++ b/examples/twice.fusp @@ -0,0 +1,3 @@ +mul a b = code mul a b; +twice f x = f (f x); +main = twice twice twice (mul 2) 1; |