aboutsummaryrefslogtreecommitdiff
path: root/challenge-052/richard-park/apl/ch-1.aplf
blob: 1d92fce1ecd238432d56e68d781c65bbd9fc6650 (plain)
1
2
3
4
5
 SteppingNo{
⍝ All stepping numbers from ⍺ to ⍵ inclusive
⍝ 123 is a stepping number; 432 is also; 349 is not.
     i⊂⍸{1=∧/2-/¨}¨i+⍳-
 }