Support lambdas.

Signed-off-by: Chris Lamb <chris@thread.com>