Skip to content

Commit ff1b78d

Browse files
committed
translated until line 16
1 parent 508c8eb commit ff1b78d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

1-js/99-js-misc/03-currying-partials/article.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ libs:
55

66
# Currying
77

8-
[Currying](https://en.wikipedia.org/wiki/Currying) is an advanced technique of working with functions. It's used not only in JavaScript, but in other languages as well.
8+
[Currying](https://en.wikipedia.org/wiki/Currying) este o tehnică avansată de lucru cu funcții. Este utilizată nu numai în JavaScript, dar și în alte limbaje.
99

10-
Currying is a transformation of functions that translates a function from callable as `f(a, b, c)` into callable as `f(a)(b)(c)`.
10+
Currying este o transformare a funcțiilor care transpune o funcție apelabilă ca `f(a, b, c)` în apelabilă ca `f(a)(b)(c)`.
1111

12-
Currying doesn't call a function. It just transforms it.
12+
Currying nu apelează o funcție. Pur și simplu o transformă.
1313

14-
Let's see an example first, to better understand what we're talking about, and then practical applications.
14+
Să vedem mai întâi un exemplu, pentru a înțelege mai bine despre ce vorbim, și apoi aplicațiile practice.
1515

16-
We'll create a helper function `curry(f)` that performs currying for a two-argument `f`. In other words, `curry(f)` for two-argument `f(a, b)` translates it into a function that runs as `f(a)(b)`:
16+
Vom crea o funcție ajutătoare `curry(f)` care realizează currying pentru o funcție `f` cu două argumente. Cu alte cuvinte, `curry(f)` pentru `f(a, b)` cu două argumente îl traduce într-o funcție care se execută ca `f(a)(b)`:
1717

1818
```js run
1919
*!*

0 commit comments

Comments
 (0)