@@ -212,7 +212,7 @@ addOneAndContinue(2, printAsString) // 'Given 3'
212
212
213
213
``` js
214
214
const continueProgramWith = (data ) => {
215
- // Continues program with data
215
+ // 데이터와 함께 프로그램을 계속 진행한다.
216
216
}
217
217
218
218
readFileAsync (' path/to/file' , (err , response ) => {
@@ -304,7 +304,7 @@ const incrementAll = (numbers) => map(add(1))(numbers)
304
304
// Points-free - The list is an implicit argument
305
305
const incrementAll2 = map (add (1 ))
306
306
```
307
- ` incrementAll ` 은 매개 변수 ` numbers ` 를 사용하고 식별하므로 Point-free합니다 . ` incrementAll2 ` 는 함수와 값을 결합하여 작성되며 인수에 대해서는 언급하지 않습니다. Point-free합니다.
307
+ ` incrementAll ` 은 매개 변수 ` numbers ` 를 사용하고 식별하므로 Point-free 하지 않습니다 . ` incrementAll2 ` 는 함수와 값을 결합하여 작성되며 인수에 대해서는 언급하지 않습니다. Point-free합니다.
308
308
309
309
points-free 함수 정의는 ` function ` or ` => ` 없이 일반적인 할당처럼 보입니다.
310
310
@@ -438,7 +438,7 @@ const liftA2 = (f) => (a, b) => a.map(f).ap(b) // note it's `ap` and not `map`.
438
438
439
439
const mult = a => b => a * b
440
440
441
- const liftedMult = liftA2 (mult) // this function now works on functors like array
441
+ const liftedMult = liftA2 (mult) // 이 함수는 이제 배열과 같은 functor에서 작동합니다.
442
442
443
443
liftedMult ([1 , 2 ], [3 ]) // [3, 6]
444
444
liftA2 (a => b => a + b)([1 , 2 ], [3 , 4 ]) // [4, 5, 5, 6]
@@ -733,13 +733,13 @@ const nameLens = R.lens(
733
733
``` js
734
734
const person = {name: ' Gertrude Blanch' }
735
735
736
- // invoke the getter
736
+ // getter를 호출한다.
737
737
R .view (nameLens, person) // 'Gertrude Blanch'
738
738
739
- // invoke the setter
739
+ // setter를 호출한다.
740
740
R .set (nameLens, ' Shafi Goldwasser' , person) // {name: 'Shafi Goldwasser'}
741
741
742
- // run a function on the value in the structure
742
+ // 구조체의 값에 함수를 실행한다.
743
743
R .over (nameLens, uppercase, person) // {name: 'GERTRUDE BLANCH'}
744
744
```
745
745
@@ -806,11 +806,11 @@ __추가 읽기__
806
806
807
807
JavaScript에는 이와 같은 유형이 없지만 ` Set ` 을 사용하여 가장 할 수 있습니다:
808
808
``` js
809
- // imagine that rather than sets here we have types that can only have these values
809
+ // 여기에는 Set가 아니라 이 값만 가질 수있다고 상상해보세요.
810
810
const bools = new Set ([true , false ])
811
811
const halfTrue = new Set ([' half-true' ])
812
812
813
- // The weakLogic type contains the sum of the values from bools and halfTrue
813
+ // weakLogic 유형에는 bools과 halfTrue의 값의 sum이 들어 있습니다.
814
814
const weakLogicValues = new Set ([... bools, ... halfTrue])
815
815
```
816
816
0 commit comments