Answers

You're missing a return value declaration on your lambda. The compiler can deduce the return value if you just have a single statement in your lambda that is a return statement, but the moment you add more lines in there, it needs you to declare the return
type. Try this:

All replies

You're missing a return value declaration on your lambda. The compiler can deduce the return value if you just have a single statement in your lambda that is a return statement, but the moment you add more lines in there, it needs you to declare the return
type. Try this: