List Comprehensions!

One feature of Python and Haskell (which make up 2/3 of my favorite languages) that is not in D (the last of my fav's) is list comprehensions. These are fricken sweet, so I decided that it needed to go into Delight. So here it is!

You can now include a list comprehension as follows:

procedure main:
	auto list_comp = { x * 2 for x in 0 .. 10 by 2 where x ^ 2 more than 3 }

	print list_comp

This'll spit out:

[ 4, 8, 12, 16 ]

Pretty sweet, eh?

One last thing to note: the 0 .. 10 by 2 part is just the range [0, 2, 4, 6, 8].