Eli5: Lambda functions/expressions

1.22K views

Eli5: Lambda functions/expressions

In: Mathematics

Anonymous 0 Comments

They are pretty much just chunks of code that can be assigned to a value/variable. The idea of them is to help write less code.

In Javascript it can be used quite often even tho they aren’t referred to as Lambda functions/expressions. One of the major features of Javascript that makes use of the Lambda functions concept is Function Definition.

You can see examples of that here: https://www.w3schools.com/js/js_function_definition.asp

EDIT: Just saw the math tag, you might be referring to Lambda Calculus, which I have no clue but from my understanding it sort of is like Lambda functions/expressions in Computer science.