octave-ruby icon indicating copy to clipboard operation
octave-ruby copied to clipboard

Is it possible to pass ruby proc as function?

Open strelec opened this issue 12 years ago • 0 comments

Examples:

engine.put_variable 'fun', -> x { |x|
   external.evaluate_at x
}

engine.put_variable 'fun2', -> x { |x|
   x**2
}

strelec avatar Nov 16 '13 17:11 strelec