ChaiScript/unittests/lambda.chai

3 lines
52 B
ChaiScript

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