I missed this in the discussion, sorry Topher. Check out [this explanation](http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_07.html) of `shift`.

tl;dr: you can think of it as an array shift operation on the list of arguments to the function ($1..$n)