mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
Add Array class
This commit is contained in:
parent
c39973f536
commit
392812b150
3 changed files with 56 additions and 27 deletions
|
@ -166,3 +166,8 @@ class RangeIterator:
|
|||
raise StopIteration
|
||||
|
||||
Iterator.register(RangeIterator)
|
||||
|
||||
class Array(list):
|
||||
def push(self, value):
|
||||
self.append(value)
|
||||
return self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue