aboutsummaryrefslogtreecommitdiff
path: root/challenge-071/richard-park/apl/PeakElement.aplf
blob: fe02548cc90ef05886687ee79b702728dbd5176f (plain)
1
2
3
4
5
6
7
 PeakElement{
⍝ ⍵: Array
⍝ A peak cell is a cell which grades higher than its neighbours
     1=≢⍵:⍵
     FPMC{3=2⌷⍋⍋} ⍝ Find Peak Major Cell in group of 3
     ⌿⍨FPMC3
 }