Filter: Difference between revisions

201 bytes added ,  15 days ago
PascalABC.NET
(Add ed example)
(PascalABC.NET)
 
Line 2,993:
 
The odd() function is a standard library function of pascal as is the function even().
 
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
begin
var a := Arr(1..10);
var even := a.Where(x -> x mod 2 = 0);
even.Print
end.
</syntaxhighlight>
{{out}}
<pre>
2 4 6 8 10</pre>
 
 
=={{header|Peloton}}==
234

edits