MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / SeqMapI

Function SeqMapI

lean_py/z3/core.py:3964–3970  ·  view source on GitHub ↗

Map indexed function over sequence.

(f: FuncDeclRef, s: ExprRef)

Source from the content-addressed store, hash-verified

3962
3963
3964def SeqMapI(f: FuncDeclRef, s: ExprRef) -> ExprRef:
3965 """Map indexed function over sequence."""
3966 return ExprRef(
3967 AppNode(_AstVar("seq.mapi"), (_AstVar(f._name), s._ast)),
3968 s._sort,
3969 s._vars | frozenset([(f._name, f._ast_sort)]),
3970 )
3971
3972
3973def SeqFoldLeft(f: FuncDeclRef, init: ExprRef, s: ExprRef) -> ExprRef:

Callers

nothing calls this directly

Calls 2

AppNodeClass · 0.90
ExprRefClass · 0.85

Tested by

no test coverage detected