Skip to content

Commit

Permalink
Update course9/lecture_en.md
Browse files Browse the repository at this point in the history
Co-authored-by: Zihang Ye <[email protected]>
  • Loading branch information
skylee03 and peter-jerry-ye authored Jun 3, 2024
1 parent 241679a commit b46239c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course9/lecture_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ fn get[Key: Eq, Value](map : Map[Key, Value], key : Key) -> Option[Value] {
}
```

In the above implementation, we define an auxiliary function called `aux` to traverse the list and use the `==` operator to determine whether the current key matches the one we are looking for. It can be shown that when there are multiple identical keys, we will always retrieve the latest value associated with that key.
In the above implementation, we loop through the list and use the `==` operator to determine whether the current key matches the one we are looking for. It can be shown that when there are multiple identical keys, we will always retrieve the latest value associated with that key.

## Custom Operators

Expand Down

0 comments on commit b46239c

Please sign in to comment.