Jump to content

Common sorted list: Difference between revisions

(Add Factor)
Line 18:
{{out}}
<pre>
Sorted union of { { 5 1 3 8 9 4 8 7 } { 3 5 9 8 4 } { 1 3 7 9 } } is:
USING: formatting kernel sets sorting ;
{ 1 3 4 5 7 8 9 }
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>
 
1,827

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.