Added reverse query

This commit is contained in:
2021-07-27 12:54:49 +02:00
parent a080119c44
commit 62c8b9c68d
4 changed files with 32 additions and 3 deletions

View File

@@ -80,9 +80,15 @@ class IterableABC(ABC, list):
@abstractmethod
def order_by_descending(self, func: Callable) -> 'IterableABC': pass
@abstractmethod
def reverse(self) -> 'IterableABC': pass
@abstractmethod
def single(self) -> any: pass
def to_list(self) -> list:
return list(self)
@abstractmethod
def single_or_default(self) -> Optional[any]: pass