<namesection> <name>unstack</name> <desc>Unstacking channels</desc> </namesection> <synopsis> <syntax> package require <package>Tcl</package> <o>8.2</o> package require <package>Trf</package> <o>2.1.3</o> <cmd>unstack</cmd> <m>channel</m> </syntax> </synopsis>
The command <cmd>unstack</cmd> is an interface to the public Tcl API function <syscmd>TclUnstackChannel</syscmd>. It unstacks the topmost transformation from the specified channel if there is any.

<dle>
<cmd>unstack</cmd> <m>channel</m>
  Removes the topmost transformation from the specified <m>channel</m>. If the <m>channel</m> has no transformation associated with it it will be closed. In other words, in this situation the command is equivalent to <cmd>close</cmd>.
</dle>

<seealso> <ref>trf-intro</ref> </seealso> <keywords> <keyword>transformation</keyword> <keyword>unstacking</keyword> <keyword>removal</keyword> </keywords>