Closed willfrey closed 4 years ago
Would this be possible by overloading some metatable functions for tds.Hash()? Or would it require diving deeper?
tds.Hash()
For reference, code to get defaultdict behavior with lua tables is available here: https://github.com/facebook/fblualib/blob/master/fblualib/util/fb/util/init.lua#L273-L278
defaultdict
Thanks!
Would this be possible by overloading some metatable functions for
tds.Hash()
? Or would it require diving deeper?For reference, code to get
defaultdict
behavior with lua tables is available here: https://github.com/facebook/fblualib/blob/master/fblualib/util/fb/util/init.lua#L273-L278Thanks!