unpack
unpack template, string
- Takes a string (string) representing a data structure and expands it into a list value, returning the list value. (
unpackdoes the reverse ofpack.) In a scalar context, it can be used to unpack a single value. The template has much the same format as in thepackfunction - it specifies the order and type of the values to be unpacked. (Seepackfor a more detailed description of template.)