You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Implementation of .NET's [IEnumerable](https://learn.microsoft.com/en-us/dotnet/
4
4
5
5
## Architecture & Design
6
6
7
-
PyEnumerable follows a relatively simple architecture, mainly because there isn't any reason to do otherwise!
7
+
PyEnumerable follows a relatively simple architecture, mainly because there isn't any reason to do otherwise!<br/>
8
8
Extension methods defined by `IEnumerable` interface are grouped by their functionality under protocols located `pyenumerable.protocol` package; The main advantage provided by protocols over ABCs (abstract base classes) is the ability to define overloads w/ different signatures.
9
9
10
10
### Protocols
@@ -23,7 +23,7 @@ A callable which accepts two arguments of type `TSource` & returns a `bool` valu
23
23
24
24
#### `Enumerable`
25
25
26
-
This protocol consolidates all other protocols into a single one, allowing implementations to reference it instead of listing each individual protocol. This approach minimizes the risk of omitting any methods due to oversight.
26
+
This protocol consolidates all other protocols into a single one, allowing implementations to reference it instead of listing each individual protocol. This approach minimizes the risk of omitting any methods due to oversight.<br/>
27
27
It also enforces the presence of a property called `source` which can be used to access actual items inside an instance of a particular implementation.
28
28
29
29
#### `Associable`
@@ -242,8 +242,7 @@ assert one.group_join(
242
242
two,
243
243
lambdax: x,
244
244
lambdapoint: point.y,
245
-
lambdax,
246
-
points: (x, points.source)
245
+
lambdax, points: (x, points.source)
247
246
).source == (
248
247
(1, Point(1, 1), Point(2, 1)),
249
248
(2, Point(3, 2), Point(4, 2), Point(5, 2))
@@ -707,7 +706,8 @@ type parameters:
707
706
708
707
#### `PurePythonEnumerable`
709
708
710
-
A basic implementation of Enumerable; Written without the assumption of `TSource` conforming to `collections.abc.Hashable` or being immutable; preserves order.
709
+
Basic implementation of `pyenumerable.Enumerable`; Assumes that `TSource` conforms to `collections.abc.Hashable` & is immutable.<br/>
710
+
Violating this assumption may lead to unpredictable behaviour.
0 commit comments