You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add findSliceIndex function to other collections #167
It will work just like the existing findIndex : 'a -> 'Collection<'a> -> int but it searches a "slice" (i.e. subsequence, sub-collection) instead of an elementString.findIndex.
I'm personally fine with this, definitely it makes sense to have them for other collections.
It also makes sense to have the generic version, if you are willing to do this PR I leave it to your criteria/willingness to include the generic functions or not.
Of course, I'm happy to help fighting the compiler ;)
We don't have generic findIndex yet, so if we are going to add generic findSliceIndex it is better to add it too. If it's OK I'll start a PR and do both.
Activity
gusty commentedon Jul 29, 2019
I'm personally fine with this, definitely it makes sense to have them for other collections.
It also makes sense to have the generic version, if you are willing to do this PR I leave it to your criteria/willingness to include the generic functions or not.
Of course, I'm happy to help fighting the compiler ;)
cannorin commentedon Jul 30, 2019
We don't have generic
findIndexyet, so if we are going to add genericfindSliceIndexit is better to add it too. If it's OK I'll start a PR and do both.gusty commentedon Jul 30, 2019
Yes, go ahead please !
wallymathieu commentedon Jul 30, 2019
Sounds nice. Would it make sense to have a
Slicemodule?gusty commentedon Jul 31, 2019
We can consider it if we ever decide to split our functions in modules.