Ad
  • Default User Avatar

    I did this kata in Kotlin. And I would suggest to remove this kata from the Kotlin katas or modify it.
    Kotlin goes a great length to be a typesafe language, to reduce an array to Any so that it is possible to have different types in this array, should be prevented at all cost (in Kotlin).
    This kata is a level 7 kata and is done from a lot of "Kotlin-Beginners", they could think that this is a good practise (in Kotlin).
    Yes, there are other languages, in which you can put everything in an array, but you should not do this in Kotlin.
    Instead of using an Array of Any I would suggest to use an Array of String as input.