Skip to content

Commit

Permalink
fixup! OrderedSet: optimize intersect & fix docs typos
Browse files Browse the repository at this point in the history
  • Loading branch information
GoPavel committed Nov 7, 2024
1 parent 2ef4060 commit f11c7de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/OrderedMap.mo
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,9 @@ module {
/// ```
///
/// Cost of mapping all the elements:
/// Runtime: `O(n * log(n))`.
/// Runtime: `O(n)`.
/// Space: `O(n)` retained memory
/// where `n` denotes the number of key-value entries stored in the map.
///
/// Note: Creates `O(n * log(n))` temporary objects that will be collected as garbage.
public func map<V1, V2>(m : Map<K, V1>, f : (K, V1) -> V2) : Map<K, V2>
= Internal.map(m, f);

Expand Down

0 comments on commit f11c7de

Please sign in to comment.