Baseline: tree as shared
This commit is contained in:
1679 files changed
+1024562
No files matched your search
@@ -0,0 +1,17 @@
|
||||
def cache_lookup(sensor_id: Int) -> Int:
|
||||
if sensor_id == 7:
|
||||
return 512
|
||||
return None
|
||||
|
||||
|
||||
def main() raises:
|
||||
var hit = cache_lookup(7)
|
||||
var miss = cache_lookup(3)
|
||||
if hit:
|
||||
print('hit:', hit.value())
|
||||
else:
|
||||
print('hit:', hit)
|
||||
if miss:
|
||||
print('miss:', miss.value())
|
||||
else:
|
||||
print('miss:', miss)
|
||||
Reference in new issue
Block a user