I’d like to have a Scala functions that returns the reference to another function, is that possible?
I’d like to have a Scala functions that returns the reference to another function,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can return a function type (this is defined by
A => B). In this case Int to Int:When you call the function you get a new function.
Which can be called as a normal function: