aboutsummaryrefslogtreecommitdiff
path: root/challenge-078/richard-park/apl/LeaderElement.aplf
blob: 4c6fe9dc5b890c24fb789f83e87787d0e0d945df (plain)
1
2
3
4
5
 LeaderElement{
⍝ ⍵: Distinct integers
⍝ ←: Elements which are greater than all elements to their right
     ⌿⍨0=∨/(∘.<⍳≢)(∘.<)
 }