12. Quantify Data Flashcards

1
Q

What does the Any method do?

A

It has two overloads.

  1. The first one is with no parameters and returns a bool indicating whether the sequence is empty or not.
  2. The second one takes a predicate function as a parameter and returns a bool indicating whether the sequence contains any item that returns true for this predicate.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the Contains method do?

A

Returns a bool indicating whether a specific item is contained in a given sequence.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what does the All method do?

A

Returns a bool indicating whether all items in the given sequence matches the predicate that’s passed to it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly