why not {(x,y) \ x + y } then it would be ajax(url, { (response) \ // do something }); ... you can then consider introducing { (x,y) | x % 2 == y} which just constrains the body to be a predicated!