Autosave: 2023-02-17 11:02:50
This commit is contained in:
parent
d69aa9cfe5
commit
7afcd00f8e
1 changed files with 4 additions and 0 deletions
|
@ -15,10 +15,14 @@ They are most often used unnamed with the functional methods [map, filter and re
|
|||
Here is the two syntaxes side by side:
|
||||
|
||||
```js
|
||||
// JavaScript
|
||||
|
||||
const double = (x) => x * x;
|
||||
```
|
||||
|
||||
```py
|
||||
# Python
|
||||
|
||||
double = lambda x: x * x
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue