S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What does unwrap_or_else() accept as an argument?

  • (A) A default value
  • (B) A closure
  • (C) A match statement
  • (D) A reference
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
unwrap_or_else() takes a closure to produce a default value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.