5 lines
80 B
Rust
5 lines
80 B
Rust
|
#[napi]
|
||
|
fn map_option(val: Option<u32>) -> Option<u32> {
|
||
|
val.map(|v| v + 1)
|
||
|
}
|