A

Admin • 833.24K Points
Coach

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

  • (A) A direct value
  • (B) An Option
  • (C) A function or closure
  • (D) A macro
  • Correct Answer - Option(C)
  • Views: 32
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

`unwrap_or_else()` takes a closure that returns a fallback value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.