wiki/content/20201126100942-anonymous.md

238 B

id title
a4ca4dd0-98ec-41a9-9220-815639dc5fe1 anonymous

Definition

Nameless functions

Examples

const nums = [1, 2, 3]

nums.map(x => x * 2)
nums = [1, 2, 3]

map(lambda x: x * 2, nums)