Skip to content

Commit bbd80f9

Browse files
authored
Add line after code block to fix inline code
https://functional.works-hub.com/blog/Functional-Programming-Jargon The line below is shown instead of having the single backticks in the md rendered into inline code. > The function \`\`\`addTo()\`\`\` returns a function(internally called \`\`\`add()\`\`\`), lets
1 parent f6f0511 commit bbd80f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ const addTo = x => y => x + y
156156
var addToFive = addTo(5)
157157
addToFive(3) // returns 8
158158
```
159+
159160
The function `addTo()` returns a function(internally called `add()`), lets store it in a variable called `addToFive` with a curried call having parameter 5.
160161

161162
Ideally, when the function `addTo` finishes execution, its scope, with local variables add, x, y should not be accessible. But, it returns 8 on calling `addToFive()`. This means that the state of the function `addTo` is saved even after the block of code has finished executing, otherwise there is no way of knowing that `addTo` was called as `addTo(5)` and the value of x was set to 5.

0 commit comments

Comments
 (0)