Ruby: convert proc to lambda?
        Posted  
        
            by Alan O'Donnell
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Alan O'Donnell
        
        
        
        Published on 2010-06-01T00:13:42Z
        Indexed on 
            2010/06/01
            0:23 UTC
        
        
        Read the original article
        Hit count: 726
        
Is it possible to convert a proc-flavored Proc into a lambda-flavored Proc?
Bit surprised that this doesn't work, at least in 1.9.2:
    my_proc = proc {|x| x}
    my_lambda = lambda &p
    my_lambda.lambda? # => false!
        © Stack Overflow or respective owner