Files
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

14 lines
323 B
Mojo
Generated

struct LidarScan(Copyable):
var near_points: Int
def __init__(out self, near_points: Int, far_points: Int):
self.near_points = near_points
def total(self) -> Int:
return self.near_points + self.far_points
def main():
var scan = LidarScan(8, 256)
print("Total points:", scan.total())