Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
panzerstadt committed Nov 26, 2023
1 parent 458784f commit 83f36e0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/interpreter/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ for (let b = 1; a < 10000; b = temp + b) {
a = b;
}
// no anonymous functions btw
fn thrice(param) {
for (let i = 1; i <= 3; i = i + 1) {
param(i);
}
}
// this will not work
thrice(fn (a) {
print a;
});
// come back from time to time to see this list grow!
-----------------
Expand Down

0 comments on commit 83f36e0

Please sign in to comment.