Support some, ok and err wrappers and untyped function inputs
This commit is contained in:
1 parent
6e4f9cd65a
commit
79533e9537
20 files changed
+36187
-35406
No files matched your search
Vendored
+1
-1
@@ -11,7 +11,7 @@ choose_block: (bit, i32, i32) -> i32: @ (condition: bit, when_true: i32, when_fa
|
||||
first_positive: []i32 -> i32?: @ values: []i32 {
|
||||
for value in values {
|
||||
if value > 0 {
|
||||
return value->|.some
|
||||
return some value
|
||||
}
|
||||
}
|
||||
nil
|
||||
|
||||
Reference in new issue
Block a user