Fix prelude
This commit is contained in:
parent
f7357d4498
commit
3906210db8
@ -6,8 +6,8 @@ type Ord = LT | EQ | GT
|
|||||||
|
|
||||||
fn map(input: Option<T>, func: Func): Option<T> {
|
fn map(input: Option<T>, func: Func): Option<T> {
|
||||||
if input {
|
if input {
|
||||||
is Option::Some(x) -> Option::Some(func(x)),
|
is Option::Some(x) then Option::Some(func(x)),
|
||||||
is Option::None -> Option::None,
|
is Option::None then Option::None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user