Repository navigation
Extend string module - Part 1 - #159
Merged
Merged
Conversation
Member
Author
|
hmm the CI script on Travis seems to be broken |
Co-authored-by: Elliott Brown <EBrown8534@users.noreply.github.com>
cannorin
force-pushed
the
extend-string-module
branch
from
July 23, 2019 05:51
96da951 to
8a74fe2
Compare
Member
Author
|
This |
gusty
reviewed
Jul 23, 2019
Member
Author
|
As FAKE build script is not working on my machine, I've run NUnit manually on the test assembly and confirmed that the test about |
gusty
reviewed
Jul 25, 2019
gusty
pushed a commit
that referenced
this pull request
Jul 25, 2019
Co-authored-by: Elliott Brown <EBrown8534@users.noreply.github.com> This fixes #158
wallymathieu
pushed a commit
that referenced
this pull request
Jul 25, 2019
This fixes #158 Co-authored-by: Elliott Brown <EBrown8534@users.noreply.github.com>
This was referenced Aug 3, 2019
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related: fsharp/fslang-suggestions#102
Closes #158.
This PR adds more string functions to the String module (in Extensions.fs), and use them as the implementation of existing generic functions.
"Part 1" means we have some functions left to be discussed in detail and they are not going to be added in this PR.
See #158 for the discussion.
TODO:
Add the following functions ((*) Generic version already exists):
Replace the implementation of following generic functions with the new ones:
ofArray/ toList / ofList / toSeq / ofSeqrevskipped because adding it alone would break the existing overload resolution.Add some tests for: (skipped trivial functions)
findIndex / tryFindindex / findSliceIndex / tryFindSliceIndexpadLeft / padRight / padLeftWith / padRightWithtrim / trimStart / trimEndtoArray / ofArray / toList / ofList / toSeq / ofSeqitem/tryItemrevtake / skip / takeWhile / skipWhile / truncate / dropgetBytes