17 lines
346 B
Text
17 lines
346 B
Text
//! Module-level documentation
|
|
|
|
open std::io;
|
|
|
|
Result<T, E> ::= Ok (T) | Err (E);
|
|
|
|
/// This just logs a thing
|
|
log := fn(data ::= Display) {
|
|
io::println("[info] {}", data);
|
|
};
|
|
|
|
// we need a main function
|
|
pub main := fn() -> () {
|
|
io::println("Hello, world");
|
|
data := [ 1, 2, 3 ];
|
|
strings := data.map(Display::fmt).collect::<List<...>();
|
|
};
|