Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 23rd, 2018
79
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
class Array
def contains(x)
return self.index(x) != nil
end
end
class Array
def contains(x)
self.each() do | y |
if( y == x )
return true
end
end
return false
end
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
Tower of Hanoi
Python | 2 min ago | 1.93 KB
styles.css.txt FileExplorer
CSS | 21 min ago | 1.54 KB
index.html.txt FileExplorer
HTML | 22 min ago | 1.56 KB
Collection
JavaScript | 23 min ago | 0.35 KB
ArinekHTML Parser
JavaScript | 24 min ago | 6.57 KB
Untitled
JSON | 27 min ago | 0.04 KB
FileExplorer.js
JavaScript | 30 min ago | 5.56 KB
Custom RNN Architecture
Python | 30 min ago | 1.85 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!