Common list elements: Difference between revisions
Content added Content deleted
(Added Algol 68) |
(→BQN: add) |
||
Line 393: | Line 393: | ||
[2,5,1,3,8,9,4,6],[3,5,6,2,9,8,4],[1,3,7,6,9] : 3 6 9 |
[2,5,1,3,8,9,4,6],[3,5,6,2,9,8,4],[1,3,7,6,9] : 3 6 9 |
||
</pre> |
</pre> |
||
=={{header|BQN}}== |
|||
<syntaxhighlight lang="bqn">(∊/⊣)´ ⟨2,5,1,3,8,9,4,6⟩‿⟨3,5,6,2,9,8,4⟩‿⟨1,3,7,6,9⟩</syntaxhighlight> |
|||
{{out}} |
|||
<pre>⟨ 3 9 6 ⟩</pre> |
|||
=={{header|CLU}}== |
=={{header|CLU}}== |
||
<syntaxhighlight lang="clu">contains = proc [T: type] (a: array[T], v: T) returns (bool) |
<syntaxhighlight lang="clu">contains = proc [T: type] (a: array[T], v: T) returns (bool) |