Jump to content

Filter: Difference between revisions

232 bytes added ,  11 months ago
→‎Insitux: implementation
No edit summary
(→‎Insitux: implementation)
Line 1,718:
 
<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}}==
112

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.