Common sorted list: Difference between revisions

Add clojure solution
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
(Add clojure solution)
Line 437:
 
<pre>1 3 4 5 7 8 9</pre>
 
=={{header|Clojure}}==
<syntaxhighlight lang="lisp">(defn common-sorted [& colls]
(into (sorted-set) cat colls))
 
(common-sorted [5 1 3 8 9 4 8 7] [3 5 9 8 4] [1 3 7 9])
;; => #{1 3 4 5 7 8 9}
</syntaxhighlight>
 
=={{header|Excel}}==
15

edits