Common list elements: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (→{{header|Raku}}: Add a Raku example) |
(Add Factor) |
||
Line 8: | Line 8: | ||
'''output''' = [3,6,9] |
'''output''' = [3,6,9] |
||
<br><br> |
<br><br> |
||
=={{header|Factor}}== |
|||
Note: in older versions of Factor, <code>intersect-all</code> was called <code>intersection</code>. |
|||
{{works with|Factor|2020-02-05}} |
|||
<lang factor>USING: prettyprint sets ; |
|||
{ { 2 5 1 3 8 9 4 6 } { 3 5 6 2 9 8 4 } { 1 3 7 6 9 } } intersect-all .</lang> |
|||
{{out}} |
|||
<pre> |
|||
{ 3 6 9 } |
|||
</pre> |
|||
=={{header|Raku}}== |
=={{header|Raku}}== |