Department numbers: Difference between revisions
Content deleted Content added
→{{header|zkl}}: re-write |
m →{{header|AppleScript}}: (Layout - removed excessive spacing, to foreground structure) |
||
Line 36: | Line 36: | ||
set ds to enumFromTo(lo, hi) |
set ds to enumFromTo(lo, hi) |
||
-- X IS EVEN |
|||
script Xeven |
script Xeven |
||
on |λ|(x) |
on |λ|(x) |
||
-- Y IS NOT X |
|||
script Ydistinct |
script Ydistinct |
||
on |λ|(y) |
on |λ|(y) |
||
-- Z IS IN RANGE |
|||
script ZinRange |
script ZinRange |
||
on |λ|(z) |
on |λ|(z) |
||
if y ≠ z and lo ≤ z and z ≤ hi then |
if y ≠ z and lo ≤ z and z ≤ hi then |
||
{{x, y, z}} |
{{x, y, z}} |