6 lines
204 B
Mojo
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))
|