Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Hey guys thx. You both make my day. I solved the kata. Didn't know, that I have to keep the functions name and the parameters name. Thanks again and have a nice weekend. :o)
Sorry for late response...
The signature is
func bmi(_ weight: Int, _ height: Double) -> String
, sofunc calcBMI(userWeight weight: Double, userHeight height: Double) -> String
won't work.AFAIK, it works in Swift, check the function's name, in the kata it's
bmi
and the parameter's types areInt
andDouble
, click reset to see it.Hey guys, is the Swift version broken? I'm 100% sure my solution is working in XCode and Playgrounds on iOS.
Cheers
This comment is hidden because it contains spoiler information about the solution
Post your code and we can help.
(Note: with a spoiler flag, and using markdown formatting.)
Hi guys, I' new to programming. Codewars give me this error altough the func works properly in Swift Playgrounds. Can you help me with this?
solution.swift:10:1: error: expressions are not allowed at the top level
bmiCalc(userWeight: 85, userHeight: 1.75)
^
Thanks.