summaryrefslogtreecommitdiff
path: root/lib/std/search.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-03-06 11:47:45 -0800
committerOri Bernstein <ori@markovcorp.com>2018-03-06 11:47:45 -0800
commit7b024df82962f4bfe24db5b74fe2a92aac26cf8e (patch)
tree71c499cbc5964b8a9823fef21d1e8b09ee98c0b3 /lib/std/search.myr
parent27b4f894b3b7456b64908ad8c2d50ba66ebb513a (diff)
downloadmc-7b024df82962f4bfe24db5b74fe2a92aac26cf8e.tar.gz
Add ternary operator.
Diffstat (limited to 'lib/std/search.myr')
-rw-r--r--lib/std/search.myr3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/search.myr b/lib/std/search.myr
index 5e3865b..8e5e259 100644
--- a/lib/std/search.myr
+++ b/lib/std/search.myr
@@ -32,8 +32,7 @@ generic bsearch = {sl, key, cmp
match cmp(sl[mid], key)
| `After: hi = mid - 1
| `Before: lo = mid + 1
- | `Equal:
- -> `Some (mid : @idx)
+ | `Equal: -> `Some (mid : @idx)
;;
;;
-> `None