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

Function lean_is_ctor

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

Source from the content-addressed store, hash-verified

412 self.lean_dec_ref(o)
413
414 def lean_is_ctor(self, o):
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)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected