Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WebReflection/JSONH
/ unpack
Method
unpack
rb/jsonh.rb:42–49 ·
view source on GitHub ↗
(hlist)
Source
from the content-addressed store, hash-verified
40
end
41
42
def unpack(hlist)
43
ksize = Integer(hlist[0])
44
keys = hlist[1, ksize]
45
values = hlist[ksize+1..-1]
46
values.each_slice(ksize).map do |values|
47
Hash[keys.zip(values)]
48
end
49
end
50
end
51
52
if $0 == __FILE__
Callers
1
wru
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected