june / A formatting print rule-set.
0 likes
0 forks
1 files
Last active 1 month ago
Supports custom formatting by adding additional rules. (Runs in Serpens.)
| 1 | |:: print? :string: '%d'| :: print a number |
| 2 | |:: print? :string: '%b'| :: print a number :base: 2 |
| 3 | |:: print? :string: '%x'| :: print a number :base: 16 |
| 4 | |:: print? :string: '%s'| :: print a string |
| 5 | |:: print? :string: '{}'| :: print an argument |
| 6 | |:: print? :string: '\n'| :string: 10 |
| 7 | |:: print? :string: '\t'| :string: 9 |
| 8 | |:: print? :string: '\r'| :string: 13 |
| 9 | |:: print? :string: '\0'| :string: 0 |
| 10 | |:: print? :string: $ | :@stdio: write $ |
june / A simple search algorithm.
0 likes
0 forks
1 files
Last active 1 month ago
It eats whatever you pass into it.
| 1 | |:search for: $something :collection: $something| |
| 2 | :found: $something |
| 3 | |:search for: $something :collection: $something-else| |
| 4 | :search for: $something |
| 5 | |:search for: $something| |
| 6 | :not found: $something |
| 7 | |
| 8 | ||:search for: red |
| 9 | :collection: (green blue white orange red violet) |