Common sorted list: Difference between revisions

Add Factor
(Add Factor)
Line 8:
'''output''' = [1,3,4,5,7,8,9]
<br><br>
 
=={{header|Factor}}==
{{works with|Factor|0.99 2021-02-05}}
<lang factor>USING: formatting kernel sets sorting ;
 
{ { 5 1 3 8 9 4 8 7 } { 3 5 9 8 4 } { 1 3 7 9 } }
dup union-all natural-sort
"Sorted union of %u is:\n%u\n" printf</lang>
{{out}}
<pre>
USING: formatting kernel sets sorting ;
IN: rosetta-code.sorted-union
 
{ { 5 1 3 8 9 4 8 7 } { 3 5 9 8 4 } { 1 3 7 9 } }
dup union-all natural-sort
"Sorted union of %u is:\n%u\n" printf
</pre>
 
=={{header|REXX}}==
1,808

edits