mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
refactor!: rename Array
-> List
This commit is contained in:
parent
41bf14629b
commit
c6eb78a44d
248 changed files with 1948 additions and 1985 deletions
|
@ -206,13 +206,13 @@ opened in a binary mode.
|
|||
) => File!
|
||||
|
||||
'''
|
||||
Convert `iterable` into an array.
|
||||
Convert `iterable` into a list.
|
||||
'''
|
||||
'''erg
|
||||
assert array() == []
|
||||
assert array((1, 2)) == [1, 2]
|
||||
assert list() == []
|
||||
assert list((1, 2)) == [1, 2]
|
||||
'''
|
||||
.array: |T| (iterable := Iterable(T)) -> [T; _]
|
||||
.list: |T| (iterable := Iterable(T)) -> [T; _]
|
||||
|
||||
'''
|
||||
Convert `iterable` into a dict.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue