@@ -16,6 +16,9 @@ These APIs may have breaking changes more frequently than those in Enumerable cl
16
16
in .NET are happening and sometimes ones of these APIs could be moved to Enumerable with modification,
17
17
or changed to accommodate changes to Enumerable.
18
18
19
+ Revisions:
20
+ - v0.2.0: New.
21
+
19
22
Bases
20
23
======
21
24
- ``Enumerable[TSource_co] ``
@@ -100,6 +103,9 @@ Example
100
103
>>> MoreEnumerable(ints).enumerate().to_list()
101
104
[(0, 2), (1, 4), (2, 6)]
102
105
106
+ Revisions:
107
+ - main: New.
108
+
103
109
----
104
110
105
111
instancemethod ``except_by2(second, key_selector) ``
@@ -121,6 +127,10 @@ Example
121
127
>>> MoreEnumerable(first).except_by2(second, lambda x : x[1 ]).to_list()
122
128
[(16, 'x'), (16, 't')]
123
129
130
+ Revisions:
131
+ - main: Renamed from ``except_by() `` to this name to accommodate the update to Enumerable class.
132
+ - v0.2.1: Added preliminary support for unhashable keys.
133
+
124
134
----
125
135
126
136
instancemethod ``flatten() ``
@@ -314,6 +324,9 @@ Example
314
324
>>> store
315
325
{1, 2}
316
326
327
+ Revisions:
328
+ - v0.2.1: New.
329
+
317
330
----
318
331
319
332
instancemethod ``rank[TSupportsLessThan]() ``
@@ -332,6 +345,9 @@ Example
332
345
>>> MoreEnumerable(scores).rank().to_list()
333
346
[6, 5, 2, 3, 3, 5, 4, 7, 8, 1, 3] # 101 is largest, so has rank of 1
334
347
348
+ Revisions:
349
+ - main: New.
350
+
335
351
----
336
352
337
353
instancemethod ``rank(__comparer) ``
@@ -348,6 +364,9 @@ Ranks each item in the sequence in descending order using the given comparer.
348
364
Such comparer takes two values and return positive ints when lhs > rhs, negative ints
349
365
if lhs < rhs, and 0 if they are equal.
350
366
367
+ Revisions:
368
+ - main: New.
369
+
351
370
----
352
371
353
372
instancemethod ``rank_by[TSupportsLessThan](key_selector) ``
@@ -377,6 +396,9 @@ Example
377
396
... .to_dict(lambda g : g.key, lambda g : g.to_list())
378
397
{3 : [' Frank' ], 2 : [' Alica' , ' Rogers' ], 1 : [' Erika' ]}
379
398
399
+ Revisions:
400
+ - main: New.
401
+
380
402
----
381
403
382
404
instancemethod ``rank_by[TKey](key_selector, __comparer) ``
@@ -394,6 +416,9 @@ Ranks each item in the sequence in descending order using the given selector and
394
416
Such comparer takes two values and return positive ints when lhs > rhs, negative ints
395
417
if lhs < rhs, and 0 if they are equal.
396
418
419
+ Revisions:
420
+ - main: New.
421
+
397
422
----
398
423
399
424
staticmethod ``traverse_breath_first[TSource](root, children_selector) ``
0 commit comments