Sort three variables: Difference between revisions

m
J draft
(Added Sidef)
m (J draft)
Line 377:
original data: [77444 -12 0]
</pre>
 
=={{header|J}}==
 
Note that this is extremely bad form, and you will stumble over why it is bad form if you try using it in any useful implementation:
 
<lang J> x =: 'lions, tigers, and'
y =: 'bears, oh my!'
z =: '(from the "Wizard of OZ")'
'x y z'=: /:~".'x;y;<z'
x
(from the "Wizard of OZ")
y
bears, oh my!
z
lions, tigers, and
x =: 77444
y =: -12
z =: 0
'x y z'=: /:~".'x;y;<z'
x
_12
y
0
z
77444</lang>
 
=={{header|Kotlin}}==
6,951

edits