DEV Community

Discussion on: Lambda Expressions

Collapse
 
mzaini30 profile image
Zen

It's like map in Javascript

Collapse
 
rodiongork profile image
Rodion Gorkovenko

not exactly, Javascript has dedicated syntax for anonymous functions, e.g.

    x => x+10
    // or in old-style
    function(x) { return x + 10 }

while map is just one of possible use-cases for them