Timeline for Higher Order functions from Eloquent JavaScript [duplicate]
Current License: CC BY-SA 4.0
Post Revisions
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 23, 2023 at 0:19 | history | closed |
pilchard CommunityBot |
Duplicate of What is 'Currying'? | |
| Jan 22, 2023 at 15:44 | answer | added | Igor Morozov | timeline score: 3 | |
| Jan 22, 2023 at 15:33 | review | Close votes | |||
| Jan 23, 2023 at 0:21 | |||||
| Jan 22, 2023 at 15:21 | comment | added | Dave Newton |
Parameters are "assigned" when functions are called. Calling greaterThan with the parameter 10 assigns it to n. greaterThan returns a function "enclosing" n--it remains 10. The returned function is called with its own parameter, assigned to m. The "magic" you may be missing are closures (searchable term).
|
|
| Jan 22, 2023 at 15:13 | answer | added | Pointy | timeline score: 0 | |
| S Jan 22, 2023 at 15:11 | review | First questions | |||
| Jan 22, 2023 at 15:45 | |||||
| S Jan 22, 2023 at 15:11 | history | asked | Woody 1470 | CC BY-SA 4.0 | created from wizard |