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

Function lean_is_closure

lean_py/_runtime.py:417–418  ·  view source on GitHub ↗
(self, o)

Source from the content-addressed store, hash-verified

415 return self.lean_ptr_tag(o) <= constants.get("LeanMaxCtorTag", 243)
416
417 def lean_is_closure(self, o):
418 return self.lean_ptr_tag(o) == constants.get("LeanClosure", 245)
419
420 def lean_is_array(self, o):
421 return self.lean_ptr_tag(o) == constants.get("LeanArray", 246)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected