@@ -69,7 +69,7 @@ export const toSet: <Value>() => Reducer<Value, Set<Value>>
69
69
* pipe(
70
70
* cycle([`sloth`, `lazy`, `sleep`]),
71
71
* take(4),
72
- * map(string => ({ sloth: string })),
72
+ * map(word => ({ sloth: word })),
73
73
* reduce(toWeakSet()),
74
74
* ),
75
75
* )
@@ -96,7 +96,7 @@ export const toWeakSet: <Value extends object>() => Reducer<
96
96
* console.log(
97
97
* pipe(
98
98
* [`sloth`, `lazy`, `sleep`],
99
- * map(string => [string, string .length]),
99
+ * map(word => [word, word .length]),
100
100
* reduce(toObject()),
101
101
* ),
102
102
* )
@@ -128,7 +128,7 @@ export const toObject: <Key extends keyof never, Value>() => RawKeyedReducer<
128
128
* console.log(
129
129
* pipe(
130
130
* [`sloth`, `lazy`, `sleep`],
131
- * map(string => [string, string .length]),
131
+ * map(word => [word, word .length]),
132
132
* reduce(toMap()),
133
133
* ),
134
134
* )
@@ -160,7 +160,7 @@ export const toMap: <Key, Value>() => RawKeyedReducer<
160
160
* console.log(
161
161
* pipe(
162
162
* [`sloth`, `lazy`, `sleep`],
163
- * map(string => [{ sloth: string }, string .length]),
163
+ * map(word => [{ sloth: word }, word .length]),
164
164
* reduce(toWeakMap()),
165
165
* ),
166
166
* )
@@ -187,7 +187,7 @@ export const toWeakMap: <Key extends object, Value>() => RawKeyedReducer<
187
187
* console.log(
188
188
* pipe(
189
189
* [`sloth`, `lazy`, `sleep`],
190
- * map(string => [string .length, string ]),
190
+ * map(word => [word .length, word ]),
191
191
* reduce(toGrouped(toArray(), toMap())),
192
192
* ),
193
193
* )
@@ -283,7 +283,7 @@ export const toGrouped: {
283
283
* console.log(
284
284
* pipe(
285
285
* [`sloth`, `lazy`, `sleep`],
286
- * map(string => string .length),
286
+ * map(word => word .length),
287
287
* reduce(toMultiple([toSet(), toCount(), toJoin(`,`)])),
288
288
* ),
289
289
* )
@@ -296,7 +296,7 @@ export const toGrouped: {
296
296
* console.log(
297
297
* pipe(
298
298
* [`sloth`, `lazy`, `sleep`],
299
- * map(string => string .length),
299
+ * map(word => word .length),
300
300
* reduce(
301
301
* toMultiple({
302
302
* set: toSet(),
@@ -407,7 +407,7 @@ export const toMultiple: {
407
407
* console.log(
408
408
* pipe(
409
409
* [`sloth`, `lazy`, `sleep`],
410
- * map(string => [string .length, string ]),
410
+ * map(word => [word .length, word ]),
411
411
* reduce(toGrouped(toJoin(`,`), toMap())),
412
412
* ),
413
413
* )
@@ -436,7 +436,7 @@ export const toJoin: (separator: string) => Reducer<unknown, unknown, string>
436
436
* console.log(
437
437
* pipe(
438
438
* [`sloth`, `lazy`, `sleep`],
439
- * map(string => string .toUpperCase()),
439
+ * map(word => word .toUpperCase()),
440
440
* join(`, `),
441
441
* ),
442
442
* )
0 commit comments