Files
pplus-library/mojo/probes/min-of-list.mojo
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

6 lines
204 B
Mojo

# probe: can min() take one List? (no: min and max compare their arguments; the smallest item of a list is a loop)
# expect: compile-error
def main():
var xs: List[Int] = [3, 1, 2]
print(min(xs))