S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method on an iterator returns true if all elements satisfy a predicate?

  • (A) any()
  • (B) none()
  • (C) filter()
  • (D) all()
  • Correct Answer - Option(D)
  • Views: 5
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
all() checks if all elements satisfy a predicate and returns a boolean.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.