aboutsummaryrefslogtreecommitdiff
path: root/challenge-130/conor-hoekstra/apl/ch-1.apl
blob: 9b293f6f5ad3a389e8a5e6ccec6c977f1bebcc2a (plain)
1
2
3
4
5
6
solution  +/{×2|≢}⌸⍤ 
      
solution 2 5 4 4 5 5 2     ⍝ prints 5 
solution 1 2 3 4 3 2 1 4 4 ⍝ prints 4