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.
Thank you.
--
Posted via http://www.ruby-forum.com/.