>On 10/07/2011 05:52 PM, dblock wrote:
>> Anyone has a good way to implement is_subset_of for a hash? It needs
>> to work for deep hashes obviously.
>
> Why is that obvious? At least for me it isn't.
Maybe that will become clear, once we learn what a deep hash is. Is that
one that Hashes as values? Or, beware, Hashes as keys? Or, something
completely different?
>> I basically have json data returned in two formats: short and full. I
>> want to make sure that the short format is an exact subset of the full
>> format. When they aren't an exact subset I want the fields that exist
>> in the first hash and don't exist in the second.
>
>What does "short" and "full" exactly mean?
It means that the short format is an exact subset of the full format.
What is an exact subset? In what way in a Hash a set?
mfg, simon .... l