From: matz@... (Yukihiro Matsumoto) Date: 2001-05-24T12:29:02+09:00 Subject: [ruby-talk:15642] Re: Q: Function modification/Procedures Hi, In message "[ruby-talk:15633] Q: Function modification/Procedures" on 01/05/24, Daishi Harada 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.