Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WebReflection/JSONH
/ pack
Method
pack
rb/jsonh.rb:36–40 ·
view source on GitHub ↗
(hlist)
Source
from the content-addressed store, hash-verified
34
end
35
36
def pack(hlist)
37
return [] if hlist.empty?
38
keys = hlist.first.keys
39
[keys.size, *keys, *hlist.map(&:values).flatten(1)]
40
end
41
42
def unpack(hlist)
43
ksize = Integer(hlist[0])
Callers
1
wru
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected