feat: add Iterable methods

This commit is contained in:
Shunsuke Shibayama 2024-03-30 13:26:02 +09:00
parent 21fcf23827
commit 4ac6276ba9
7 changed files with 223 additions and 5 deletions

View file

@ -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";