3 ms·
I think we can go harder on the std lib :) HANDLERS.flat_map { _1.node_names.index_with(_1) }.inject(&:merge) (nb: assuming there exists a `.node_names` to
by ngcazz 2y ago
I think we can go harder on the std lib :)
HANDLERS.flat_map { _1.node_names.index_with(_1) }.inject(&:merge)
(nb: assuming there exists a `.node_names` to expose the constant... just because I like always using method calls)