RosettaCodeData/Task/Even-or-odd/NESL/even-or-odd.nesl
2016-12-05 23:44:36 +01:00

4 lines
134 B
Text

function even(n) = mod(n, 2) == 0;
% test the function by applying it to the first ten positive integers: %
{even(n) : n in [1:11]};