-
-
Notifications
You must be signed in to change notification settings - Fork 510
Add Map module & tests #715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
f7ef682
Add Map module, getMapSemigroup, getMapMonoid, & tests
joshburgess e3e9b09
Merge branch 'master' of github.com:gcanti/fp-ts
joshburgess 17334d2
Remove accidentally left in comments & re-run test script
joshburgess 438ae92
Replace deepEqual with deepStrictEqual in tests
joshburgess eee944e
Fix traverseWithKey Map test
joshburgess 1fef2cf
Add tests for keys and unsafeLookup
joshburgess 6f3971c
Remove testURL option & update Jest
joshburgess 1c159ce
Address PR feedback -- WIP (need to update tests)
joshburgess c304e2b
Update fromFoldable to use Setoid<K>
joshburgess 0889930
Update collect to use lookupWithKey
joshburgess a0c7574
Address 2nd round of PR feedback (still need to update tests)
joshburgess 3349d9f
Rename member to has & add separate member function
joshburgess b436e54
Rearrange grouped generics & type class constraints
joshburgess a75e379
Replace Map's member with isMember
joshburgess 0b6c84b
Remove unused fromNullable from imports
joshburgess e6ca597
Fix Map's getMonoid test
joshburgess 73e36d0
Fix type errors in Map tests file
joshburgess 9a7c3c2
Remove getMapMonoid from Monoid tests file
joshburgess 5a4068a
Remove getMapSemigroup from Semigroup tests file
joshburgess b03a295
Update isMember
joshburgess 04734a9
Rewrite reduce, reduceWithKey, foldr, & foldrWithKey using Ords
joshburgess d1559ba
Merge branch 'master' of github.com:gcanti/fp-ts
joshburgess 1888737
Add alternate keys_ function that returns a Set
joshburgess 5c57c25
Fix remove implementation
joshburgess cc0942d
Add tests for isSubmap and empty
joshburgess 4b4358e
Rearrange tests, add missing tests, add Jest --clearCache flag
joshburgess 587b934
Rename keys_ to keysSet and simplify its implementation
joshburgess 57c384d
Add extra conditional check in isMember to return early
joshburgess 348f4f0
Remove out var in isMember
joshburgess d75ff67
Fix isMember implementation
joshburgess 4c4bc6a
Fix foldMap & foldMapWithKey by giving them an Ord<K> constraint
joshburgess 1696c36
Fix _WithIndex vs _WithKey inconsistency -- fixed in Record in separa…
joshburgess cf6d05c
Merge branch 'master' of github.com:gcanti/fp-ts
joshburgess f1a7026
Add Map instances, instance getter functions, & related
joshburgess 21afce2
Delete unused imports
joshburgess 80a42b9
Cleanup/rearrange tests
joshburgess 6dd77e7
Address half of new round of PR review requested changes
joshburgess 51c1bd4
Fix isSubmap
joshburgess 69c2488
Revert changes to isSubmap and remove unnecesssary lookup
joshburgess 0fa8710
Remove unnecessary lookup in getMonoid
joshburgess d5b1dbf
Change fromFoldable to use Foldable2v instead
joshburgess 9d5085a
Remove unused imports
joshburgess bfade2b
Move jest --clearCache into a separate npm script
joshburgess 6f48ab3
Attempt to fix test coverage (failed)
joshburgess e86d7e0
Fix test mitsake
joshburgess 874e5b8
Remove overloads
joshburgess d046fd2
Fix fromFoldable implementation
joshburgess c0f241e
Change which instance getters are made public
joshburgess 279e3b7
Change getMonoid implementation
joshburgess c41f56a
Obtain 100% test coverage) still need better Ord/Setoid usage
joshburgess 255ed60
Completely overhaul tests & fix keysSet implementation
joshburgess 5547636
Replace Array sort dependency with native sort + O.compare
joshburgess f277cee
Rerwrite keysSet implementation without Set's fromArray dependency
joshburgess b5e9141
Improve keys test + add and test values & valuesSet
joshburgess af8a2c5
Add elemKey and test
joshburgess 2f72dd2
Add elemPair + use it in elemKey & isMember
joshburgess ac87ca9
Adjust comments
joshburgess 137ac2c
Rename isMember to elem
joshburgess 9eef791
Rename has to member
joshburgess 4faba5b
Add missing test for elemPair
joshburgess 8594794
Fix comment for elemPair
joshburgess 2467bc4
Rename elemPair to elemWithKey
joshburgess d471a17
Add & test new toSet function
joshburgess 1764e8d
Minor cleanup of tests
joshburgess e3e929e
Remove elemKey, elemWithKey, toSet, keysSet, & valuesSet
joshburgess 22afbb6
Merge branch 'master' of github.com:gcanti/fp-ts
joshburgess 2e4a13d
Update dtslint
joshburgess 204e2ac
Attempt to fix dtslint package lock problem
joshburgess 152976f
Try to fix dtslint issues
joshburgess 5745c3e
Move dtslint back to devDependencies
joshburgess 09f0c94
Try to fix dtslint yet again
joshburgess 2657989
dtslint...
joshburgess File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.