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

Add FirstOrDefault() with a predicate (merged Where and FirstOrDefault()) #11

Open
FredTunaB opened this issue Jul 25, 2023 · 2 comments

Comments

@FredTunaB
Copy link

So we could do this:
int val = list.Gen().FirstOrDefault(/*predicate*/)

insead of

int val = list.Gen().Where(/*predicate/*).FirstOrDefault()

@donitry
Copy link

donitry commented Sep 27, 2023

but i use list.Gen().FirstOrDefault(/predicate/) fail, always to use int val = list.Gen().Where(/predicate/).FirstOrDefault().... why??

@donitry
Copy link

donitry commented Sep 27, 2023

when can use "TakeWhile" ???

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

No branches or pull requests

2 participants