-
-
Notifications
You must be signed in to change notification settings - Fork 96
Sequence equality #249
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
Sequence equality #249
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
1fc35d5
wip range equality
frenchy64 bbc06d0
wip
frenchy64 a059c68
test core::equal
frenchy64 701d79f
wip
frenchy64 8a1472e
[skip ci]
frenchy64 cbd354f
[skip ci] rm
frenchy64 3727186
[skip ci]
frenchy64 ddd82ac
tests
frenchy64 c2da550
wip
frenchy64 c035ee8
[skip ci]
frenchy64 4dc1d92
[skip ci]
frenchy64 b6d8889
wip
frenchy64 408ed65
wip
frenchy64 4529d26
fix
frenchy64 c227006
[skip ci]
frenchy64 f1d6e2c
fix
frenchy64 ca229f8
[skip ci]
frenchy64 3afba55
wip
frenchy64 c5f2e33
[skip ci]
frenchy64 2dbbca6
fmt
frenchy64 d081d74
Merge branch 'main' into sequence-equality
frenchy64 4819593
Merge branch 'main' into sequence-equality
frenchy64 fe6f1dd
assert
frenchy64 2deb82d
Merge branch 'main' into sequence-equality
frenchy64 c36ca8d
[skip ci]
frenchy64 acb06a4
wip
frenchy64 4a1620f
[skip ci]
frenchy64 b3ffc63
[skip ci]
frenchy64 8bf2c34
[skip ci] undo
frenchy64 6b760d1
[skip ci]
frenchy64 0bbcbc1
[skip ci]
frenchy64 5a08204
[skip ci]
frenchy64 e9c761f
[skip ci]
frenchy64 a695a90
[skip ci]
frenchy64 31216fc
[skip ci]
frenchy64 e8fc0b5
[skip ci]
frenchy64 6e26023
[skip ci]
frenchy64 02d217d
[skip ci]
frenchy64 4979e26
[skip ci]
frenchy64 5e1e9c3
[skip ci]
frenchy64 fc1ff00
[skip ci]
frenchy64 6a1919f
[skip ci]
frenchy64 10f4798
[skip ci]
frenchy64 bdecaf0
[skip ci]
frenchy64 2dc83fe
wip
frenchy64 99728fa
[skip ci] fmt
frenchy64 0b8c535
wip
frenchy64 dd3649e
wip
frenchy64 674a8e9
[skip ci] revert equal null check
frenchy64 d754b74
[skip ci] fix first half of chunked cons
frenchy64 6132099
[skip ci] add bang to next-in-place, fix comments
frenchy64 7c16d3a
[skip ci] assert
frenchy64 d9d6281
asserts
frenchy64 e562511
[skip ci] -else
frenchy64 0d27f83
add sequence_equal tests
frenchy64 64a74a2
apply-to
frenchy64 eee2c29
[skip ci]
frenchy64 cea8422
tests
frenchy64 2e08987
fmt
frenchy64 35a8643
wip
frenchy64 5aecb6e
[skip ci] undo equal changes
frenchy64 0da1002
[skip ci] revert callable
frenchy64 5df808d
[skip ci] rm assertions
frenchy64 bf75688
[skip ci] remove assert
frenchy64 201560b
fix #283
frenchy64 f2e9a29
[skip ci] smaller fix
frenchy64 4b405bf
[skip ci] try again
frenchy64 4246bd8
[skip ci] again
frenchy64 24ca1fc
[skip ci] -assert
frenchy64 aaacb2c
[skip ci] use correct ctor for infinite repeat
frenchy64 9f05135
fmt
frenchy64 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,7 @@ namespace std | |
} | ||
else if(!rhs) | ||
{ | ||
return !lhs; | ||
return false; | ||
} | ||
return lhs->equal(*rhs); | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,7 +159,7 @@ namespace std | |
} | ||
else if(!rhs) | ||
{ | ||
return !lhs; | ||
return false; | ||
} | ||
return lhs->equal(*rhs); | ||
} | ||
|
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, here,
it
cannot benullptr
. That's not part of the contract. Everything returned fromruntime::
fns should be non-null.The one exception is the
next_in_place
andfresh_seq
templates. Ultimately, we can remove those (not in this PR); they're only there for a historical partial refactor which never panned out.There should never be a case, right now, where we need to check for nullptr and nil.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a few more in
multi_function.cpp
.