3 ms·
You can also: [socket, window, file].map(&:close) That just sends the :close message to each object in the set and returns a set of the results of each obje
by getsat 15y ago
You can also:
[socket, window, file].map(&:close)
That just sends the :close message to each object in the set and returns a set of the results of each object evaluating that message. Yay, Smalltalk.