1 2 3 4 5
LeaderElement←{ ⍝ ⍵: Distinct integers ⍝ ←: Elements which are greater than all elements to their right ⍵⌿⍨0=∨/(∘.<⍨⍳≢⍵)∧(∘.<⍨⍵) }