Skip to contents

Checks if a list has a proper structure to be transformed into a hierarchical structure

Usage

check_valid_structure(n)

Arguments

n

list

Value

Error if the structure is improper. Otherwise, there's no output.