SplitScript reference / Language / Some
Some
syntax
Some(value)
Explicitly constructs a present optional value.
Some infers T from its value and constructs T?. Plain T values still lift automatically whenever T? is expected.
Examples
Construct an optional value
let selected: i32? = Some(7)