Ad
  • Custom User Avatar

    You need to replace "func swap(_ s: String, n: Int) -> String" with "func swap(_ s: String, _ n: Int) -> String". Then the error "type of expression is ambiguous without more context" will disappear