Other Ruby Map Shorthand Notation
Unfortunately this shorthand notation (which calls “Symbol#to_proc”) does not have a way to pass arguments to the method or block being called, so you couldn’t even do the following: array_of_strings.map(&:include, ‘l’) #=> this would fail BUT, you are in luck because you don’t actually need this shortcut to do what you are trying to do. … Read more