-
Notifications
You must be signed in to change notification settings - Fork 1.1k
IArray extension methods #7795
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
IArray extension methods #7795
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
d21d32e
Add map extension method to DynamicTuple
a9ba00e
Add all common methods of Scala2's ArrayOps to the IArray extension m…
7444d02
Move extension methods to IArray class
9b62e78
Adapt the extension to the (yet) new syntax
777636f
Add test file
e47663c
Made IArray extension methods compile
94439fc
Fix unzip issue
092a49d
Add explicit type casts everywhere needed
b3d1088
Remove unwanted change
b8bdbf3
Implement a test for every extension method
7b61141
Fix a bug in lastIndexOf and lastIndexWhere
8216307
Comment the extension methods (documentation copied from ArrayOps.scala)
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
IArray(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20) | ||
true | ||
5 | ||
IArray(9,10) | ||
IArray(1,2) | ||
IArray(8,9,10) | ||
true | ||
IArray(2,4,6,8,10) | ||
IArray(1,3,5,7,9) | ||
Some(5) | ||
IArray(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10) | ||
IArray(1,2,3,4) | ||
55 | ||
12345678910 | ||
10987654321 | ||
false | ||
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
Some(1) | ||
-1 | ||
3 | ||
0,1,2,3,4,5,6,7,8,9 | ||
IArray(1,2,3,4,5,6,7,8,9) | ||
false | ||
1,2,3 | ||
10 | ||
Some(20) | ||
6 | ||
3 | ||
IArray(11,12,13,14,15,16,17,18,19,20) | ||
true | ||
IArray(2,4,6,8,10) | ||
IArray(1,3,5,7,9) | ||
IArray(10,9,8,7,6,5,4,3,2,1) | ||
IArray(0,1,3,6,10,15,21,28,36,45,55) | ||
IArray(,1,12,123,1234,12345,123456,1234567,12345678,123456789,12345678910) | ||
IArray(10987654321,1098765432,109876543,10987654,1098765,109876,10987,1098,109,10,) | ||
10 | ||
IArray(6,7) | ||
IArray(10,9,8,7,6,5,4,3,2,1) | ||
IArray(10,1,2,3,4,5,6,7,8,9) | ||
IArray(1,2,3,4,5,6,7,8,9,10) | ||
IArray(1,2,3,4) | ||
IArray(5,6,7,8,9,10) | ||
IArray(1,2,3,4,5,6,7) | ||
IArray(8,9,10) | ||
false | ||
IArray(2,3,4,5,6,7,8,9,10) | ||
IArray(1,2,3) | ||
IArray(7,8,9,10) | ||
IArray(1,2) | ||
IArray(1,2,3) | ||
IArray(1,2,3) | ||
IArray((1,11),(2,12),(3,13),(4,14),(5,15),(6,16),(7,17),(8,18),(9,19),(10,20)) |
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.