Please enable JavaScript.
Coggle requires JavaScript to display documents.
Methods &
Functions - Coggle Diagram
Methods &
Functions
-
functions allow to create a block of code executed many times without rewrite the entire block of code
-
-
Lambda expression,
map & filter function
-
filter
returns an iterator were the items are filtered through a function to test if the item is accepted or not.
var = filter(func, iterator)
lambda
take any number of arguments, but can only have one expression
-
-
-
-
ex: have a function definition that takes one argument, and that argument will be multiplied with an unknown number
-
-