add generics
This commit is contained in:
1 parent
79533e9537
commit
2204d58102
22 files changed
+47358
-37579
No files matched your search
Vendored
+2
-2
@@ -11,10 +11,10 @@ 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 some value
|
||||
return value->|.some
|
||||
}
|
||||
}
|
||||
nil
|
||||
|.none
|
||||
}
|
||||
|
||||
labelled_search: []i32 -> i32: @ values: []i32 { loop `outer {
|
||||
|
||||
Reference in new issue
Block a user