4 ms·
True, unfortunately. You can't pass functions around as first class objects, you'll have to use lambdas or procs for that (although even then composition doesn'
by d_k_f 7y ago
True, unfortunately. You can't pass functions around as first class objects, you'll have to use lambdas or procs for that (although even then composition doesn't work like that in Ruby).
(No judgement from me on whether that's better/worse/about equal, just confirming.)