Applies a function to each element of the source sequence and returns a new
sequence of result elements for source elements where the function returns a
couple (2-tuple) having a true
as its first element and result as the
second.
"O,l,2,3,4,S,6,7,B,9"
.Split(',')
.Choose(s => (int.TryParse(s, out var n), n))
For more details, see the documentation.
✏ Edit this page if you see a typo or wish to contribute an improvement. Alternatively, you can also report an issue you see.