Hi,

In message "[ruby-talk:15633] Q: Function modification/Procedures"
    on 01/05/24, Daishi Harada <daishi / cs.berkeley.edu> writes:

|I'm wondering what the right way to do the following in Ruby, expressed
|here in Lisp:
|
|(defun wrap (fn) (lambda (x) (some-fn (fn x))))
|
|I was looking at the Procedure object, but it appears that Procedures
|require the
|method invocation 'call' to execute the actual procedure body.

You need "funcall" if you're using Lisp (except Scheme). ;-)

Proc has [] method to invoke.  Can you compromise?

  f = Proc{|x| puts x}
  f[55]        # => 55

							matz.