Sort three variables: Difference between revisions
m
→{{header|Phix}}: reformat
m (→{{header|Phix}}: reformat) |
|||
Line 1,772:
Phix is naturally polymorphic
<lang Phix>object {x,y,z} = {"lions, tigers, and","bears, oh my","(from the \"Wizard of OZ\")"}
?{x,y,z}
{x,y,z} = sort({x,y,z}) ?{x,y,z}
{x,y,z} = {77444,-12,0} ?{x,y,z}
{x,y,z} = sort({x,y,z}) ?{x,y,z}</lang>▼
▲{x,y,z} = sort({x,y,z})
{{out}}
<pre>{"lions, tigers, and","bears, oh my","(from the \"Wizard of OZ\")"}
|