[quiz] quiz 2 without a stack?

11 May
2006
11 May
'06
2:10 p.m.
I don't have a solution, but I'm curious: Is it possible to solve Quiz #2 in a purely functional way, without a temporary "stack" variable? -Stuart

11 May
11 May
11:20 p.m.
New subject: [quiz] Re: quiz 2 without a stack?
On 9472 day of my life Stuart Sierra wrote:
I don't have a solution, but I'm curious: Is it possible to solve Quiz #2 in a purely functional way, without a temporary "stack" variable? -Stuart
Use temporary "accumulator" variable :) -- Ivan Boldyrev Perl is a language where 2 x 2 is not equal to 4.
7095
Age (days ago)
7096
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ivan Boldyrev
-
Stuart Sierra