Ad
  • Custom User Avatar

    With Rust it's the same as in needing to return either a String or None, but it works fine for this kata.

  • Custom User Avatar

    I have no idea about what you're talking about (I don't do much Swift), but whatever, the fact is that, with a very few exceptions, all the published solutions do it, that's what the reference solution does, I did it too, and it works.

  • Custom User Avatar

    if i change the return type to String? I will have to make force unwrapping to get non-optional answer, but the answer can be nil. Force unwrapping of nil is a error. I mean not "nil. I mean nil

  • Custom User Avatar

    You need to change the return type to String?. I think it's a mistake from the translator that should be fixed (?).

  • Custom User Avatar

    This does not work on Swift because you need to return either nil or String, but both options cannot be made in Swift. Either String or "nil"