Skip to content

Commit

Permalink
remove unused bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
bobzhang authored and muqiuhan committed Mar 22, 2024
1 parent 4c3fe60 commit 084b630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map/map.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub fn singleton[K, V](key : K, value : V) -> Map[K, V] {

/// Check if the map contains a key.
/// O(log n).
pub fn member[K : Compare, V : Show](self : Map[K, V], key : K) -> Bool {
pub fn member[K : Compare, V](self : Map[K, V], key : K) -> Bool {
loop self {
Empty => false
Tree(k, _, _, l, r) => {
Expand Down

0 comments on commit 084b630

Please sign in to comment.