Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
May 23rd, 2018
85
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
my_hash = {}
my_array.each do |item|
# i want to push the item into an array, how do i create the array
my_hash[item.category] << item
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
Legend style
LScript | 20 min ago | 64.20 KB
Untitled
C++ | 25 min ago | 0.47 KB
optimized_kmp
C++ | 27 min ago | 1.97 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 36 min ago | 0.38 KB
Untitled
C++ | 36 min ago | 1.38 KB
isometric
JavaScript | 38 min ago | 3.34 KB
Untitled
C++ | 58 min ago | 0.98 KB
snowybot python
JavaScript | 1 hour ago | 3.54 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!