added more examples
This commit is contained in:
Regular → Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env clyx
|
||||
:: _main [
|
||||
for [ 1 101 range ] [
|
||||
1 # tracking flag
|
||||
swap # the index is on top
|
||||
dup 3 mod 0= if [ "Fizz" puts swap drop 0 swap ] [ ]
|
||||
dup 5 mod 0= if [ "Buzz" puts swap drop 0 swap ] [ ]
|
||||
swap if [ . ] [ drop cr ]
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user