Forums

List comprehension

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

List comprehension

Postby relez » Sat Jul 26, 2008 10:39 am

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.
relez
 
Posts: 69

Re: List comprehension

Postby Charles » Sat Jul 26, 2008 7:30 pm

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
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 115 guests

cron