gammy.utils.unflatten

unflatten

unflatten(x: list, y: list)list[source]

Unflatten according to a reference

Examples

unflatten([1, 2, 3], [["a", "b"], ["c"]])
# [[1, 2], [3]]