Skip to content

Add findSliceIndex function to other collections - #174

Merged
gusty merged 10 commits into
fsprojects:masterfrom
cannorin:find-slice-index
Aug 20, 2019
Merged

gusty merged 10 commits into
fsprojects:masterfrom
cannorin:find-slice-index

Conversation

@cannorin

@cannorin cannorin commented Aug 3, 2019 •

Copy link
Copy Markdown
Member

Closes #167.

This PR adds findSliceIndex to collections other than String, which already have one (#159).

See #167 for the discussion.

TODO:

  • [x] Add a new reference to System.Memory Skipped, will be done in another PR
  • [x] Upgrade FSharp.Core to v4.5 or v4.6 Skipped, will be done in another PR
  • Implement findSliceIndex and tryFindSliceIndex for:
    • Seq
    • List
    • Array
  • Implement generic findIndex / tryFindIndex function
  • Implement generic findSliceIndex / tryFindSliceIndex function
  • Add some tests (if needed)

@cannorin

cannorin commented Aug 3, 2019

Copy link
Copy Markdown
Member Author

⬆️ fixing wrong commit e-mail address.

@cannorin

cannorin commented Aug 3, 2019 •

Copy link
Copy Markdown
Member Author

⬆️ doing naive implementation instead of utilizing Span<'T>.

Comment thread src/FSharpPlus/Extensions.fs Resolved
@cannorin

cannorin commented Aug 3, 2019

Copy link
Copy Markdown
Member Author

For findIndex / tryFindIndex we must resolve #175 first

@cannorin

Copy link
Copy Markdown
Member Author

I did something wrong trying to merge #177. fixing

@cannorin
cannorin marked this pull request as ready for review August 11, 2019 05:34
@gusty gusty changed the title [WIP] Add findSliceIndex function to other collections Add findSliceIndex function to other collections Aug 11, 2019
Comment thread src/FSharpPlus/Operators.fs Resolved
@cannorin

Copy link
Copy Markdown
Member Author

Sorry for being late, now I've moved the functions to Indexable.

@gusty
gusty merged commit 5cdb60c into fsprojects:master Aug 20, 2019
@cannorin
cannorin deleted the find-slice-index branch August 23, 2019 08:36
@gusty

gusty commented Aug 26, 2019

Copy link
Copy Markdown
Member

@forki Would you be able to add @cannorin to fsprojects ?

@forki

forki commented Aug 26, 2019

Copy link
Copy Markdown
Member

added @cannorin to fsharpplus-admin

@cannorin

Copy link
Copy Markdown
Member Author

@forki @gusty joined! thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add findSliceIndex function to other collections

4 participants