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 theshift key on acomputer ortypewriter keyboard - verb transitive (
computing ) acommand oroperation , similar topush , used toadd anitem to the beginning of anarray
Etymologies
Sorry, no etymologies found.
Support
Help support Wordnik (and make this page ad-free) by adopting the word unshift.
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 2007
-
#$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE_
-
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!
-
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
-
# 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
Comments
Log in or sign up to get involved in the conversation. It's quick and easy.