erg/crates/erg_compiler/lib/pystd/functools.d.er
2023-01-15 12:03:19 +09:00

4 lines
233 B
Python

.cache: |T <: Proc|(user_function: T) -> T
.lru_cache: |T <: Proc|(user_function: T) -> T
.total_ordering: (cls: ClassType) -> ClassType
.reduce: |T: Type|(function!: T => T, iterable: Iterable(T), initializer := T or NoneType) -> T