_G["list?"](e) then elt = copy(e) else elt.

Source code. The embedded handlers can be found at https://knownagents.com/agents/shapbot.