Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Apr 24th, 2018
89
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
class Array
def /(n)
arr = []
size = length / n
size += 1 if length % n > 0
n.times do |i|
arr << self[i*size, size]
end
arr
end
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 hour ago | 44.19 KB
Untitled
1 hour ago | 1.07 KB
Untitled
1 hour ago | 0.34 KB
Untitled
1 hour ago | 0.35 KB
Untitled
2 hours ago | 0.47 KB
Untitled
2 hours ago | 0.47 KB
Untitled
2 hours ago | 0.33 KB
livehindustan.com_AMP_Splash_test_on_tap
2 hours ago | 1.32 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!