JS style
(parameters) => body Very concise. You can also have multiple statements if you wrap it in braces.
Python style
lambda parameters: body A bit verbose with the keyword lambda, and also only allows one expression.
Ruby style
do |parameters| body end Allows expressions or statements, but still a bit verbose.
Alternatively:
{ |parameters| body } More concise but only, and also allows one expressionexpressions or statements.
Perl style
sub {my ($parameters) = @_; body}; Once again, allows expressions or statements, but it's even longer than Ruby.
C++ style
[&](parameters) {body} Concise and allows multiple statements.