untuplify

Contents

untuplify#

discopy.python.untuplify(stuff)[source]#

Takes the element out of a tuple if it has length 1, otherwise do nothing.

Parameters:

stuff (tuple) – The tuple out of which to take the element.

Return type:

any

Important

This is the inverse of tuplify(), except on tuples of length 1.