S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to create an iterator from a vector?

  • (A) .new()
  • (B) .clone()
  • (C) .iter()
  • (D) .map()
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
.iter() creates an iterator from a collection.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.