Filter: Difference between revisions
Content added Content deleted
No edit summary |
(→Insitux: implementation) |
||
Line 1,718: | Line 1,718: | ||
<syntaxhighlight lang="idl">result = array[where(NOT array AND 1)]</syntaxhighlight> |
<syntaxhighlight lang="idl">result = array[where(NOT array AND 1)]</syntaxhighlight> |
||
=={{header|Insitux}}== |
|||
<syntaxhighlight lang="insitux">> (filter even? [0 1 2 3 4]) |
|||
[0 2 4] |
|||
> (var x [0 1 2 3 4]) |
|||
[0 1 2 3 4] |
|||
> (var! x (filter even?)) ;replaces variable x by applying implicit closure |
|||
[0 2 4] |
|||
</syntaxhighlight> |
|||
=={{header|J}}== |
=={{header|J}}== |