jweinst1
6/6/2016 - 5:37 AM

use class wrapper to wrap pigvalue instances to call them from collections

use class wrapper to wrap pigvalue instances to call them from collections

//class wrapper around pig value allows values to be called from collections
var test = PigValue()
var dict = [String:PigWrapper]()
dict["soo"] = PigWrapper(val: test)

MakeValue.parsePigValue(&dict["soo"]!.pig, string: "\"fooo\"")

print(dict["soo"]!.pig.string!)