CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 08:04:24 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=73b65d432f65cbbad0f1e166e57e0532163fd1584cdd8c62cd50d896b46fd0c5a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22xZtyyBdmyv3WYga7OhZS0Wv03O2mQvjq%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d51613ce0e9ac4-BLR
IndexedArray - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class IndexedArray
- include Enumerable
- def initialize
- @hash = {}
- @open = []
- @last = 0
- end
- def << (value)
- id = @open.empty? ? @hash.size : @open.shift
- @hash[id] = value
- @last = id
- end
- def delete(id)
- @hash.delete(id)
- @open << id
- if @hash.empty?
- @open.clear
- else
- max_index = @hash.keys.max
- @open.select! { |i| i <= max_index }
- @open.sort!
- end
- end
- def [](id)
- @hash[id]
- end
- def each
- return enum_for(:each) unless block_given?
- @hash.keys.each do |id|
- yield @hash[id] if @hash.key?(id)
- end
- end
- def each_with_index
- @hash.keys.each do |id|
- yield @hash[id], id if @hash.key?(id)
- end
- end
- def include?(id)
- @hash.key?(id)
- end
- def index(value)
- @hash.key(value)
- end
- def each_index
- @hash.keys.each do |id|
- yield id if @hash.key?(id)
- end
- end
- def clear
- @hash.clear
- @open.clear
- end
- def size
- @hash.size
- end
- def last
- @hash[@last]
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ P
JavaScript | 9 sec ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ P
JavaScript | 51 sec ago | 0.25 KB
-
⭐⭐⭐Exchange Exploit⭐⭐
Java | 55 sec ago | 0.10 KB
-
✅⭐ Make huge profits on trading ⭐⭐ R
JavaScript | 59 sec ago | 0.25 KB
-
⭐⭐⭐Exchange Exploit T I⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 1 min ago | 0.25 KB
-
⭐⭐⭐Profit Method⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐ChangeNOW Exploit⭐⭐
Java | 1 min ago | 0.10 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