https://kotlinlang.org logo
#announcements
Title
# announcements
a

Ashutosh Panda

11/19/2019, 4:50 PM
You will understand whats the problem if you read the snippet it has lamda expression which I am trying to pass a parameter in a function
s

streetsofboston

11/19/2019, 4:53 PM
Copy code
fun roll(number: Int,operation:(Int)->Int):Int
{
    return rollDice(number)
}
You forgot the
: Int
after the
number
in the
roll
function declaration
m

Matteo Mirk

11/20/2019, 11:49 AM
Also @Ashutosh Panda you’re being confused by regular discussion flow in the channel: when someone is writing here most of the times they’re not answering you but starting a new discussion. You should write additional messages and receive answers in a thread under your original message. Please follow this convention, thanks 😉
2 Views