Self-modifying code in Ruby
问题 I am concerned about writing self-modifying code in Ruby. And by self-modifying, I mean being able to write functions that take a code block as an input value, and output another code block based on this. (I am not asking about basics such as redefining methods at runtime.) What I might want to do is, for example, having the following block, _x_ = lambda { |a, b, c, d| b + c } one can notice that arguments a and d are not used in the body at all, so I would like a function eg. #strip to