author | convert-repo |
Sun, 10 Feb 2019 04:31:24 +0000 | |
changeset 1590 | a1e0688b2f39 |
parent 1498 | 71eac66f2d96 |
permissions | -rwxr-xr-x |
1498 | 1 |
#!/usr/bin/env stx --script |
2 |
||
1349 | 3 |
"/ |
1392 | 4 |
"/ on any system: |
5 |
"/ "stx --script script1.stx |
|
6 |
"/ or: |
|
7 |
"/ "stx --f script.stx" |
|
8 |
"/ or: |
|
9 |
"/ "stx script1.stx" |
|
10 |
"/ |
|
11 |
"/ on Unix: |
|
12 |
"/ make this file executable, |
|
13 |
"/ ensure that stx is in your path, |
|
14 |
"/ then type ./script1.stx |
|
15 |
"/ |
|
1474 | 16 |
"/ will just print some numbers |
1349 | 17 |
"/ |
18 |
1 to:10 do:[:i | |
|
19 |
('the factorial of %1 is %2' |
|
20 |
bindWith:i with:i factorial) printCR |
|
21 |
]. |