+ 1

I can't understand this!

func multiply (_ a: Double, _ b: Double) -> Double { a * b } what went wrong?? I try to decode it but i dont quite understand?? Please help!

28th May 2018, 5:28 AM
Dx9
5 odpowiedzi
+ 2
@ ReimarPB, I think it is swift... https://www.sololearn.com/learn/Swift/2348/?ref=app @ Dx9 func multiply(a: Double, b: Double) -> Double { return a * b }
28th May 2018, 5:41 AM
777
777 - avatar
+ 3
First of all, which language is that?
28th May 2018, 5:28 AM
ReimarPB
ReimarPB - avatar
+ 2
Post code so that we may help.
28th May 2018, 5:31 AM
Haris
Haris - avatar
+ 2
It actually from codewars... I've been stuck there forever. BTW thank you so much
28th May 2018, 5:43 AM
Dx9
+ 1
I have tested it in several languages and they all give me an error. The code kinda reminds me of the test you have to do before you can create an account in codewars...
28th May 2018, 5:35 AM
ReimarPB
ReimarPB - avatar