S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method returns the first item of an iterator?

  • (A) take(1)
  • (B) head()
  • (C) peek()
  • (D) next()
  • Correct Answer - Option(D)
  • Views: 32
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey

next() returns the next item in an iterator.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.