ChaiScript/unittests/lambda.chai
2011-09-24 12:05:08 -06:00

3 lines
53 B
ChaiScript

auto bob = fun(x) { x + 1 }
assert_equal(4, bob(3));