mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
feat: add Iterable
methods
This commit is contained in:
parent
21fcf23827
commit
4ac6276ba9
7 changed files with 223 additions and 5 deletions
|
@ -386,6 +386,12 @@ const FUNC_MAP: &str = "map";
|
|||
const FUNC_MEMORYVIEW: &str = "memoryview";
|
||||
const FUNC_REVERSED: &str = "reversed";
|
||||
const FUNC_ZIP: &str = "zip";
|
||||
const FUNC_REDUCE: &str = "reduce";
|
||||
const FUNC_NTH: &str = "nth";
|
||||
const FUNC_SKIP: &str = "skip";
|
||||
const FUNC_POSITION: &str = "position";
|
||||
const FUNC_CHAIN: &str = "chain";
|
||||
const FUNC_INTO_ARRAY: &str = "into_array";
|
||||
const FILE: &str = "File";
|
||||
const CALLABLE: &str = "Callable";
|
||||
const GENERATOR: &str = "Generator";
|
||||
|
@ -670,6 +676,7 @@ const KW_RHS: &str = "rhs";
|
|||
const KW_ELEM: &str = "elem";
|
||||
const KW_FUNC: &str = "func";
|
||||
const KW_ITERABLE: &str = "iterable";
|
||||
const KW_ITERABLES: &str = "iterables";
|
||||
const KW_INDEX: &str = "index";
|
||||
const KW_KEY: &str = "key";
|
||||
const KW_VALUE: &str = "value";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue