Re: How to create local variable within LOOP initially clause?
- From: Slobodan Blazeski <slobodan.blazeski@xxxxxxxxx>
- Date: Thu, 01 Nov 2007 00:42:41 -0000
On Oct 31, 5:20 pm, "Carl Taylor" <carltay...@xxxxxxx> wrote:
"Slobodan Blazeski" <slobodan.blaze...@xxxxxxxxx> wrote in message
news:1193876131.499182.254330@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've searched the web but I can not find an example of creating a
local variable within loop initially clause. Basically I want to
transfer let form into LOOPs initially or somewher in the middle of
it:
You want the <with> clause.
It's Halloween night here in NYC. Is this trick or treat?
Carl help yourself http://www.spencecandies.com/images/giftbskt.jpg :)
Carl Taylor
CL-USER 1 >
(loop with x = '()
for i in '(1 2 3 4)
do (push i x)
finally (return x))
(4 3 2 1)
Great thanks, I feel like I'm learning a completely new language in
Frog way.
But it's one more improvement, now I only need to find how to collect
all the values of the hash table more concisely to get closer to
Haskell solution.
cheers
Slobodan
.
- References:
- How to create local variable within LOOP initially clause?
- From: Slobodan Blazeski
- Re: How to create local variable within LOOP initially clause?
- From: Carl Taylor
- How to create local variable within LOOP initially clause?
- Prev by Date: Re: Why push doesn't work with hash-tables?
- Next by Date: Re: OT Kenny Switches to Java!!!!!
- Previous by thread: Re: How to create local variable within LOOP initially clause?
- Next by thread: Re: How to create local variable within LOOP initially clause?
- Index(es):
Relevant Pages
|