erg/crates/erg_compiler/lib/pystd/functools.d.er
2024-11-04 13:04:03 +09:00

4 lines
294 B
Python

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