-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 'unsafeInsertWithInternal' in Strict module
This commit fixes the 'unsafeInsertWithInternal' function. The value-strictness test for 'fromListWith' was failing because a comparison between two hashmaps was failing since their size-tracking field differed. This was due to the insertion function used by 'fromListWith' not updating the hashmap's size correctly when a leaf which does not collide with any other leaves in the hashmap was inserted in it. The 'unsafeInsertWithInternal' function was also updated with more '$!' operators to reduce parentheses.
- Loading branch information
Showing
1 changed file
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters