What do you call the << operator in Ruby when it's used for appending stuff?
Posted
by more or less
on Stack Overflow
See other posts from Stack Overflow
or by more or less
Published on 2009-03-20T04:25:24Z
Indexed on
2010/04/07
2:23 UTC
Read the original article
Hit count: 302
In other contexts I know this << is called the bitshift operator. Is there a name for it when it's just used for append operations like you would do in an array or string (not sure what else you can append with it)?
I'd like to be able to use an English word to refer to it instead of saying "you know, the operator with the two left arrows that's not really the left bitshift operator".
© Stack Overflow or respective owner