S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which keyword is used to define a generic function?

  • (A) fn<T>
  • (B) fn generic
  • (C) generic fn
  • (D) gen fn
  • Correct Answer - Option(A)
  • Views: 18
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey

fn<T> defines a generic function with type parameter T.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.