current[list[i]].update({
                        list[i + 1]: {}} if i < (len(list) - 1) else {})