aboutsummaryrefslogtreecommitdiff
path: root/challenge-262/asherbhs/apl/ch-2.apl
blob: b17cd9bee1be3cac55d9c67b97c2d9c01af1abaf (plain)
1
2
3
4
5
6
⎕IO0

CountEqualDivisible{+/,(∘.=)(∘.(0=)∘.<)⍳≢}

2 CountEqualDivisible 3 1 2 2 2 1 3
1 CountEqualDivisible 1 2 3