Files
pplus-library/mojo/probes/all-generator.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
212 B
Mojo

# probe: can all() take a generator expression, as in Python? (no: Mojo 1.2.0 has no generator expressions)
# expect: compile-error
def main():
var xs: List[Int] = [1, 2, 3]
print(all(x > 0 for x in xs))