Folks,

There was a Rosettacode item for this.  It's already been solved (recently - 
thanks Steve) but will need updating.

http://rosettacode.org/wiki/List_comprehensions#Icon_and_unicon

David




>________________________________
> From: Kostas Oikonomou <k...@research.att.com>
>To: unicon-group@lists.sourceforge.net 
>Sent: Tuesday, September 3, 2013 8:31:12 PM
>Subject: Re: [Unicon-group] List comprehension
> 
>
>Very nice addition!
>
>And just in case you are on the lookout for suggestions,
>
>             [a,b,c] := proc(...)
>
>would be next on my wish list.
>
>                                                         Kostas
>
>On 09/03/2013 19:06, Clinton Jeffery wrote:
>> Hi,
>>
>> Those of you who follow changes in Unicon via the SVN repository will 
>> find the addition of
>>
>> [: generator_expression :]
>>
>> which is equivalent to
>>
>> {__tmp := []; every put(__tmp, generator_expression); if *__tmp>0 then 
>> __tmp }
>>
>> Most typically I imagine this will be used in statements like
>>
>> L:= [: 1 to 10 :]
>>
>> but I am sure there are other creative uses. This being "real new", 
>> there may be flaws and I welcome feedback. I don't think it is cast in 
>> stone yet.
>>
>> Cheers,
>> Clint
>>
>>
>
>
>------------------------------------------------------------------------------
>Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
>Discover the easy way to master current and previous Microsoft technologies
>and advance your career. Get an incredible 1,500+ hours of step-by-step
>tutorial videos with LearnDevNow. Subscribe today and save!
>http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
>_______________________________________________
>Unicon-group mailing list
>Unicon-group@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/unicon-group
>
>
>
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to