A

Admin • 670.22K Points
Coach

Q. What does the `stride(from:to:by:)` function do in Swift?

  • (A) Generates a random number
  • (B) Iterates over a range with a specific step size
  • (C) Sorts an array
  • (D) Returns the largest number
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
`stride(from:to:by:)` creates a sequence that skips numbers using a given step.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.