From this link, below is the slide that I would like to understand:
The Closure Property of Data Types
- A method for combining data values satisfies the closure property if:
- The result of combination can itself be combined using the same method.
- Closure is the key to power in any means of combination because it permits us to create hierarchical structures.
- Hierarchical structures are made up of parts, which themselves are made up of parts, and so on.
Tuples can contain tuples as elements
In math, we know that,
The closure property of real number addition states that when we add real number to other real number the result is also real. For example, 3 + 6 = 9 .
I think the above slide also talks about
tuple on these same lines.
As per above slide,
Like addition in case of real numbers, what is the operation on which
tuplehold closure property?
Can you explain how the closure property(only) of
tuplepermits hierarchical structures? Because as per this code, it is "closure property + recursive property" of a data model permits a data model to be hierarchical.