aboutsummaryrefslogtreecommitdiff
path: root/examples/scan_iterate.fusp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scan_iterate.fusp')
-rw-r--r--examples/scan_iterate.fusp5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/scan_iterate.fusp b/examples/scan_iterate.fusp
new file mode 100644
index 0000000..a43effb
--- /dev/null
+++ b/examples/scan_iterate.fusp
@@ -0,0 +1,5 @@
+import func;
+import int;
+import list;
+
+main = [take 5 (iterate (flip pow 2) 2), scan mul 1 [3,4,5], scan add 0 [3,4,5]];