You will understand whats the problem if you read ...
# announcements
a
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
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
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 😉