How do you find information (via Google, preferably) about using operators in code? In this case, I want to find the value of this code in Ruby.
x = [1,2,3] x.send :[]=,0,2 x[0] + x.[](1) + x.send(:[],2)
I want you to teach me fish - do not tell me what the operators do. When I go to Google and try to search for notation, I get examples or tutorials that do not cover a specific use.
https://stackoverflow.com/questions/1165786/how-to-search-for-punctuation-that-gets-ignored-by-google says that Google rejects such designations; the way I'm looking for an โanswerโ is to ask at least one successful step-by-step guide from someone who can take the above code and say, โThis is how I find out what the operators are doing.โ
An example of my failed searches.
I am looking for Ruby: [] = and add / remove terms such as notation, operator, colon, parenthesis, square brackets and cannot find the use of these operators in this way.
I'm looking for a ruby. notation, adding / deleting terms such as period, period, brackets, etc.
I am looking for cheat sheets. Find the cheat sheet for the default Ruby on Rails directory structure, regular expression expressions, etc., but still not what I'm looking for.
Danny source share