Onyx Examples
This page provides several simple examples of Onyx code, showing how to do common things with the standard library.
Standard Input
input
io
reader
conv
This example reads a single line of input from standard input, splits it in half on the first space using string.bisect, converts both parts to integers using conv.parse, then prints the results using printf for formatted printing.
Want to learn more?
You can learn more details about Onyx by visiting the docs! There is more examples, a reference manual for the language, and documentation for the standard library.