Jason Lillywhite wrote:
>   adder = lambda { |x,y,z| x+y+z }
>   z = lambda { |z| adder[1,2,z] }
>   z[3]
> This is what I want: write my equation one time then use that equation 
> in many different ways - solve for any one variable of my choice without 
> re-writing the equation. Thank you so much!
> 
>> 
>> But I still think some flavour of currying is what you want. Is it 
>> important that arbitrary parameters are fixed, rather than just the 
>> left-most ones?
> 
> It is important that arbitrary parameters are fixed as long as only one 
> parameter is unknown.

If the logic is to be hard-coded then maybe

   f2 = lambda { |y| adder[1,y,3] }

is good enough for you. Otherwise, writing a currying function which 
fixes arbitrary parameters is left as an exercise :-)
-- 
Posted via http://www.ruby-forum.com/.