Skip to content
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

Use collection functions from FSharp.Core when possible #1210

Merged
merged 7 commits into from
May 25, 2016

Conversation

forki
Copy link
Contributor

@forki forki commented May 21, 2016

No description provided.

@@ -2028,7 +2028,7 @@ and ReportNoCandidatesError (csenv:ConstraintSolverEnv) (nUnnamedCallerArgs,nNam
let errid =
let suggestNamesForMissingArguments =
if nReqd > nActual then
let missingArgs = List.drop nReqd cmeth.AllUnnamedCalledArgs
let missingArgs = List.skip nReqd cmeth.AllUnnamedCalledArgs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List.drop is not an exact replacement for List.skip because it doesn't throw an exception when the list is too short. I think it's best to revert this to be on the safe side.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to add an assert to List.drop that the list is long enough

@dsyme
Copy link
Contributor

dsyme commented May 24, 2016

@forki If you can backout the List.drop changes then I think this is ready to go in.

@forki
Copy link
Contributor Author

forki commented May 25, 2016

removed that drop change

@forki forki force-pushed the collections branch 2 times, most recently from a030cdd to 3fa05c5 Compare May 25, 2016 09:06
@dsyme
Copy link
Contributor

dsyme commented May 25, 2016

OK, this can go in, I'll merge

@dsyme dsyme merged commit 2d95392 into dotnet:master May 25, 2016
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.

3 participants