from The American Heritage® Dictionary of the English Language, 5th Edition.

  • intransitive verb To release the shift key on a computer or typewriter keyboard.

from Wiktionary, Creative Commons Attribution/Share-Alike License.

  • verb intransitive to release the shift key on a computer or typewriter keyboard
  • verb transitive (computing) a command or operation, similar to push, used to add an item to the beginning of an array


Sorry, no etymologies found.


Help support Wordnik (and make this page ad-free) by adopting the word unshift.


  • #$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE_

    Creating Methods On the Fly…And Bugs in Google Phonebook « Jeff Fry on Testing 2007

  • #$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE_

    2007 January « Jeff Fry on Testing 2007

  • When I type it's a real big inconvenience to have to reach for the shift key with one thumb and then reach across with the other thumb to hit a number then reach back to unshift that's 3 keystrokes for a single number! Top headlines 2011

  • Use "$:. unshift File. dirname (__FILE__)" at the start of your script if you need to 'require' additional source files in the same directory no matter what the user's current working directory is.

    RubyForge Gems 2009

  • Common Array Functions Function Example Description push myArray. push ( "Wizard") Adds a value to the end of an array Removes the last value of an array and pop myArray. pop () returns it unshift myarray. unshift ( "Wizard") Adds a value to the beginning of and array Removes the

    Recently Uploaded Slideshows 2009

  • # Set library paths in @INC, at compile time unshift @INC, '.'

    TWiki.Codev 2008

  • Then, we add that array (of individually, and universally, sorted arrays) to the right hand side of the @sorted_perms array, which we use further on in the script. unshift (@sorted_perms, "@temparray");

    LXer Linux News 2008

  • # Set library paths in @INC, at compile time unshift @INC, '.'

    TWiki.Codev 2008

  • # - * - encoding: utf-8 - * - lib = File. expand_path ( '../lib/', __FILE__) $:. unshift lib unless $:. include? (lib) require "version"

    Ole Morten Amundsen Ole Morten Amundsen 2010

  • $:. unshift File. join (File. dirname (__FILE__), * \% w [.. lib]) require 'post. rb' class PostTest

    RubyCorner 2009


Log in or sign up to get involved in the conversation. It's quick and easy.