# Functional Programming: Understand Functional Programming Terminology

**URL:** <https://forum.freecodecamp.org/t/functional-programming-understand-functional-programming-terminology/253514>\
**Category:** General\
**Created:** [January 23, 2019, 10:33am UTC](https://forum.freecodecamp.org/t/functional-programming-understand-functional-programming-terminology/253514 "2019-01-23T10:33:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PrashantSury](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/prashantsury/32/102224_2.png) [@PrashantSury](https://forum.freecodecamp.org/u/PrashantSury)\
**Post date:** [January 23, 2019, 10:33am UTC](https://forum.freecodecamp.org/t/functional-programming-understand-functional-programming-terminology/253514/1 "2019-01-23T10:33:27Z")

</div>

[https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/understand-functional-programming-terminology](https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/understand-functional-programming-terminology)

Please anyone help me to identify which is a lamda function in this assignment…  
there are three function i.e; prepareGreenTea, prepareBlackTea, prepareTea

---

<div class="post-metadata">

**Author:** ![kickflips](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kickflips](https://forum.freecodecamp.org/u/kickflips)\
**Post date:** [January 23, 2019, 1:02pm UTC](https://forum.freecodecamp.org/t/functional-programming-understand-functional-programming-terminology/253514/2 "2019-01-23T13:02:07Z")

</div>

This article (not mine) is what I thought lambdas were, moving from python:

> **[What is a Lambda in Javascript ? | Treehouse Community](https://teamtreehouse.com/community/what-is-a-lambda-in-javascript)**
>
> Participate in discussions with other Treehouse members and learn.

`map`, `reduce` and `filter` are functions that apply a `lambda` to each value in an array and return a new value.  
for example

`let shortList = myList.filter(x => x.length >= 10)`

a lambda (the arrow function) is passed in to the filter function.

the `lambda` returns true or false for each value in the array, and the `filter` pushes the true values in to a new array.

in the exercise you looked at, the lambdas are named `prepareBlackTea` and `prepareBlackTea`. They are passed in to the `getTea` function as the `prepareTea` argument.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:06pm UTC](https://forum.freecodecamp.org/t/functional-programming-understand-functional-programming-terminology/253514/3 "2021-01-17T20:06:05Z")

</div>

Closed on January 17, 2021, 8:06pm UTC


