mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
feat: add Predicate::General{Less, Greater, Not}Equal
This commit is contained in:
parent
8350ad0581
commit
06a4a6e5fc
10 changed files with 304 additions and 18 deletions
|
@ -111,6 +111,9 @@ class Array(list):
|
|||
from functools import reduce
|
||||
return reduce(lambda x, y: x * y, self, start)
|
||||
|
||||
def reversed(self):
|
||||
return Array(list.__reversed__(self))
|
||||
|
||||
class UnsizedArray:
|
||||
elem: object
|
||||
def __init__(self, elem):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue