wiki/content/20201126100942-anonymous.md

24 lines
255 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-26
2024-05-06 20:40:05 +00:00
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)
```