35 lines
803 B
Plaintext
35 lines
803 B
Plaintext
program main
|
|
fn maybe_value() -> (option i32)
|
|
some i32
|
|
int 42
|
|
fn maybe_empty() -> (option i32)
|
|
none i32
|
|
fn maybe_wide_value() -> (option i64)
|
|
some i64
|
|
i64 2147483648
|
|
fn maybe_wide_empty() -> (option i64)
|
|
none i64
|
|
fn maybe_float_value() -> (option f64)
|
|
some f64
|
|
float 42.5
|
|
fn maybe_float_empty() -> (option f64)
|
|
none f64
|
|
fn maybe_flag_value() -> (option bool)
|
|
some bool
|
|
bool true
|
|
fn maybe_flag_empty() -> (option bool)
|
|
none bool
|
|
fn maybe_string_value() -> (option string)
|
|
some string
|
|
string "slovo"
|
|
fn maybe_string_empty() -> (option string)
|
|
none string
|
|
fn result_ok() -> (result i32 i32)
|
|
ok i32 i32
|
|
int 42
|
|
fn result_err() -> (result i32 i32)
|
|
err i32 i32
|
|
int 7
|
|
fn main() -> i32
|
|
int 0
|