Created
July 25, 2011 23:22
-
-
Save anonymous/1105524 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Raynes> (doc contains?) | |
<lazybot> ⇒ "([coll key]); Returns true if key is present in the given | |
collection, otherwise returns false. Note that for numerically indexed | |
collections like vectors and Java arrays, this tests if the numeric | |
key is within the range of indexes. 'contains?' operates constant or | |
logarithmic time; it will not perform a linear search for a value. See | |
also 'some'." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment