Definitions

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

Etymologies

Sorry, no etymologies found.

Examples

  • #$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

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

    2007 January « Jeff Fry on Testing

  • 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!

    msnbc.com: Top msnbc.com headlines

  • 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

  • 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

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

    TWiki.Codev

  • 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

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

    TWiki.Codev

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

    Ole Morten Amundsen

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

    RubyCorner

Comments

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