From 044360219f2e4e0b5b5a95cb7ede00753340d61d Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Fri, 19 Apr 2024 20:21:56 +0100 Subject: Initial import --- examples/for.fco | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/for.fco (limited to 'examples/for.fco') diff --git a/examples/for.fco b/examples/for.fco new file mode 100644 index 0000000..9710fe2 --- /dev/null +++ b/examples/for.fco @@ -0,0 +1,11 @@ +# recursive for loop +def for(n fn) + if >(n 0) + fn(n) + @for(-(n 1) fn) + end +end + +def main() + for(10000 display) +end -- cgit v1.2.3