Skip to content

Commit bb37527

Browse files
committed
make fmt
1 parent ae46199 commit bb37527

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

builtins.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424
*
2525
* all([2, 4, 6], n => n % 2 === 0) // => true
2626
* all([2, 4, 5], n => n % 2 === 0) // => false
27-
*
2827
*/
2928
export function all<T>(
3029
iterable: Iterable<T>,
@@ -53,7 +52,6 @@ export function all<T>(
5352
*
5453
* any([1, 4, 5], n => n % 2 === 0) // => true
5554
* any([{name: 'Bob'}, {name: 'Alice'}], person => person.name.startsWith('C')) // => false
56-
*
5755
*/
5856
export function any<T>(
5957
iterable: Iterable<T>,
@@ -76,7 +74,6 @@ export function any<T>(
7674
* contains([3], 42) // => false
7775
* contains([3], 3) // => true
7876
* contains([0, 1, 2], 2) // => true
79-
*
8077
*/
8178
export function contains<T>(haystack: Iterable<T>, needle: T): boolean {
8279
return any(haystack, (x) => x === needle);

custom.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export function compact<T>(iterable: Iterable<Maybe<T>>): Array<T> {
3434
*
3535
* >>> compactObject({ a: 1, b: undefined, c: 0 })
3636
* { a: 1, c: 0 }
37-
*
3837
*/
3938
export function compactObject<O extends Record<string, unknown>>(
4039
obj: O,
@@ -79,7 +78,6 @@ export function first<T>(
7978
* >>> const repeatN = n => repeat(n, n);
8079
* >>> [...flatmap([0, 1, 2, 3, 4], repeatN)]
8180
* [1, 2, 2, 3, 3, 3, 4, 4, 4, 4] // note: no 0
82-
*
8381
*/
8482
export function flatmap<T, S>(
8583
iterable: Iterable<T>,

more-itertools.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export function* chunked<T>(
4747
*
4848
* [...flatten([[0, 1], [2, 3]])]
4949
* // [0, 1, 2, 3]
50-
*
5150
*/
5251
export function* flatten<T>(
5352
iterableOfIterables: Iterable<Iterable<T>>,
@@ -64,7 +63,6 @@ export function* flatten<T>(
6463
*
6564
* >>> [...intersperse(-1, range(1, 5))]
6665
* [1, -1, 2, -1, 3, -1, 4]
67-
*
6866
*/
6967
export function intersperse<T, Y>(
7068
value: T,
@@ -100,7 +98,6 @@ export function* itake<T>(n: number, iterable: Iterable<T>): Iterable<T> {
10098
*
10199
* >>> pairwise([8, 2, 0, 7])
102100
* [(8, 2), (2, 0), (0, 7)]
103-
*
104101
*/
105102
export function* pairwise<T>(iterable: Iterable<T>): Iterable<[T, T]> {
106103
const it = iter(iterable);
@@ -128,7 +125,6 @@ export function* pairwise<T>(iterable: Iterable<T>): Iterable<[T, T]> {
128125
* [1, 3, 5, 7, 9]
129126
* >>> evens
130127
* [0, 2, 4, 6, 8]
131-
*
132128
*/
133129
export function partition<T>(
134130
iterable: Iterable<T>,
@@ -236,7 +232,6 @@ export function take<T>(n: number, iterable: Iterable<T>): Array<T> {
236232
* ['A', 'B', 'C', 'D']
237233
* >>> [...uniqueEverseen('AbBCcAB', s => s.toLowerCase())]
238234
* ['A', 'b', 'C']
239-
*
240235
*/
241236
export function* uniqueEverseen<T>(
242237
iterable: Iterable<T>,
@@ -259,7 +254,6 @@ export function* uniqueEverseen<T>(
259254
* ['A', 'B', 'C', 'D', 'A', 'B']
260255
* >>> [...uniqueJustseen('AbBCcAB', s => s.toLowerCase())]
261256
* ['A', 'b', 'C', 'A', 'B']
262-
*
263257
*/
264258
export function* uniqueJustseen<T>(
265259
iterable: Iterable<T>,

0 commit comments

Comments
 (0)