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

Function lean_is_exclusive

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

Source from the content-addressed store, hash-verified

450 return self.lean_ptr_tag(o)
451
452 def lean_is_exclusive(self, o):
453 return o.contents.m_rc == 1 if o.contents.m_rc > 0 else False
454
455 def lean_is_shared(self, o):
456 return o.contents.m_rc > 1 if o.contents.m_rc > 0 else False

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected