6 ms·
I personally dislike symbol to proc for a reason I can't fully put into words so I would say widgets.any?{|x| x.can_frobnicate?}
by rtaycher 16y ago
I personally dislike symbol to proc for a reason I can't fully put into words so I would say
widgets.any?{|x| x.can_frobnicate?}
- kscaldef 16y agoit's certainly a little syntactically ugly. I'd much prefer it if functions were first-class and I could write something like "widgets.any? can_frobnicate?" or "any widgets can_frobnicate?".