tarcieri / reia

Ruby-like hybrid OOP/functional programming language for BEAM, the Erlang VM
http://reia-lang.org
MIT License
775 stars 36 forks source link

Lazy evaluation? #18

Closed masylum closed 7 years ago

masylum commented 13 years ago

Reia looks amazing! Looks like a dreamed bastard son of Ruby, Erlang and Javascript.

Will it provide lazy evaluation on infinite ranges?

[n for n in 1.., n % 2 == 0].take(5) => [2, 4, 6, 8, 10]

That would be amazing!

tarcieri commented 13 years ago

It might be possible... it's not a feature you're likely to see soon though