Is it possible to traverse (IE: Find an element) in a linked list using Lambda? My assumption is that it isn’t?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure, if you’re using the .Net implementation of LinkedList. Since it implements
IEnumerable<T>you can use LINQ against it. If you meant whether you can use Lambda specifically, then you can do the following to use it recursively.