3 ms·
Is Julia eager? In Haskell you can also do infinite lists [1..] This generates all the integers. The first example [ x^2 | x <- [1..5] ] Is basicall
by maweki 5y ago
Is Julia eager? In Haskell you can also do infinite lists
[1..]
This generates all the integers. The first example
[ x^2 | x <- [1..5] ]
Is basically already list comprehension within list comprehension. Are infinite lists possible?
- bobbylarrybobby 5y agoJulia’s Iterators package has infinite iterators but I don’t think there’s syntax for them
- oscardssmith 5y agoIf you use parens instead of brackets, you get lazy comprehensions in Julia.