The value of life lies not in its length but in its depth

The value of life lies not in its length but in its depth


Value of life lies in its width while not length.



What is the length and depth of the generalized table LS = (F, (), (E), (a, (B, C, d))?


① E = () e is an empty table with the length of 0. ② L = (a, b) l is a generalized table with the length of 2, and its two elements are atoms, so it is a linear table. ③ a = (x, l) = (x, (a, B)) a is a generalized table with the length of 2, the first element is an atom x, and the second element is a sub table L. ④ B = (a, y) = ((x, (a, b)), y) B is



How to find the length and depth of generalized table, for example, e ((a, (a, b), (a, b), c)))


The length is the number of elements in the first layer (only one atom and sub table)
Only one element of E is a sub table (a, (a, b), ((a, b), c)), so the length of E is 1
Depth is the maximum nesting times of sub table, atom is 0, sub table is 1
From the back view: ((a, b), c))) to a or B have four nesting times, so the depth of E is 4