Page 1 of 1

List comprehension

PostPosted: Sat Jul 26, 2008 10:39 am
by relez
i'm walking a bit slow but i'm walking ;) ... so, what about list comprehension? Is this supported (or it is planned that Cobra support)?
Tk u again.

Re: List comprehension

PostPosted: Sat Jul 26, 2008 7:30 pm
by Charles
Yes, the syntax is covered at http://cobra-language.com/docs/manual/expressions/for.html

I use them myself when writing the compiler.

I also recommend drilling down through the topics at http://cobra-language.com/docs/manual/

There is not much there, but I avoided the boring stuff like "+ is for addition" and stuck to things that people are likely to ask about.

-Chuck