Common list elements: Difference between revisions

Undo revision 358208 by Chkas (talk)
(Added Easylang)
(Undo revision 358208 by Chkas (talk))
Line 596:
[3; 9; 6]
</pre>
 
=={{header|EasyLang}}==
<syntaxhighlight>
nums[][] = [ [ 2 5 1 3 8 9 4 6 ] [ 3 5 6 2 9 8 4 ] [ 1 3 7 6 9 ] ]
#
found = 1
for e in nums[1][]
for l = 2 to len nums[][]
found = 0
for x in nums[l][]
if e = x
found = 1
break 1
.
.
if found = 0
break 1
.
.
if found = 1
r[] &= e
.
.
print r[]
</syntaxhighlight>
 
=={{header|Factor}}==
2,054

edits