Dear Andrew,

Nope, unfortunately it's not what I am trying to achieve. The code you've 
kindly (let's forget the interpolation task, what I really meant is some 
programming construct, so it's OK with no delta_x) submitted gives:

my_interp = make_interp(x, y)
println(my_interp(2.1))  # prints 4.5    
y[2] = 5
println(my_interp(2.1))  # prints 5.4    

and I also would like to get 4.5 in the second case.

All the best,
Marek

Reply via email to