Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
Alias lookup k m = m.?[k]
Browse files Browse the repository at this point in the history
  • Loading branch information
Abigail Magalhães committed Mar 27, 2020
1 parent 0499d78 commit c00a192
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/data/map.ml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ let lookup k (M tree) =
| Lt -> go l
| Gt -> go r
go tree
let (.?[]) map key = lookup map key

(** Lookup a key on the map. If it is not present, raise an exception.
*)
Expand Down

0 comments on commit c00a192

Please sign in to comment.