mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-23 03:56:23 +00:00
23 lines
255 B
Markdown
23 lines
255 B
Markdown
---
|
|
date: 2020-11-26
|
|
id: a4ca4dd0-98ec-41a9-9220-815639dc5fe1
|
|
title: anonymous
|
|
---
|
|
|
|
# Definition
|
|
|
|
Nameless functions
|
|
|
|
# Examples
|
|
|
|
``` javascript
|
|
const nums = [1, 2, 3]
|
|
|
|
nums.map(x => x * 2)
|
|
```
|
|
|
|
``` python
|
|
nums = [1, 2, 3]
|
|
|
|
map(lambda x: x * 2, nums)
|
|
```
|