This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,5 @@
|
||||
# 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))
|
||||
Reference in new issue
Block a user