Not sure I understand the problem. Maybe there is a () for empty parameter list missing, but you are then also missing a =. The semicolon would then be after the whole λ and would therefore be correct.
posted 1 month ago
Aaaaaaaaaaaaaaaaaaaaaaaaaaah! I have just seen that Duck is the type of the parameter. I which case the λ should readorIn which case I think you are right; you probably shouldn't have the semicolon in the first version.