Skip to content

cotrLambda

Creates a lambda function

Aliases:

  • cotrLambda
  • cotrClosure
  • cotrFuncLambda
  • cortFuncArrow

dart

(parameters) => expression

javascript

const myLambda = (parameters) => expression;

javascriptreact

const myLambda = (parameters) => expression;

swift

let myClosure = { (parameters) -> ReturnType in
return expression
}