Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 20th, 2018
85
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 interleave(other)
arr = []
size.times { |i| arr << self[i]; arr << other[i] unless i + 1 > other.size }
left = other[size - 1 .. -1]
arr += left if left
arr
end
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
New link bin🥊
Bash | 4 min ago | 1.06 KB
noteScan.py
Python | 14 min ago | 1.26 KB
kli
Latex | 25 min ago | 2.80 KB
wordle attempt 2 janky
JavaScript | 31 min ago | 4.28 KB
2025-07-06_stats.json
JSON | 31 min ago | 2.78 KB
2025-07-06_stats.json
JSON | 33 min ago | 2.77 KB
2025-07-06_stats.json
JSON | 34 min ago | 2.76 KB
Untitled
C++ | 2 hours ago | 7.87 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!