Files
onepilot/frogpilot/third_party/h3/api/basic_str/_convert.py
T
2026-02-13 00:21:29 -07:00

15 lines
256 B
Python

from ... import _cy
_in_scalar = _cy.str_to_int
_out_scalar = _cy.int_to_str
def _in_collection(cells):
it = [_cy.str_to_int(h) for h in cells]
return _cy.iter_to_mv(it)
def _out_collection(mv):
return list(_cy.int_to_str(h) for h in mv)