lambda as function example