MCPcopy 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
50end
51
52if $0 == __FILE__

Callers 1

wruFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected