A

Admin • 833.24K Points
Coach

Q. Which function checks if a vector is empty?

  • (A) is_none()
  • (B) check()
  • (C) empty()
  • (D) is_empty()
  • Correct Answer - Option(D)
  • Views: 30
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

`.is_empty()` returns `true` if a collection has no elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.