Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

treemap

def treemap(lst):
    cp = list()
    for element in lst:
        if isinstance(element, list):
            cp.append(treemap(element))
        else:
            cp.append(element**2)
    return cp
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #treemap
ADD COMMENT
Topic
Name
8+3 =