case{              ⍝ Select statement
    ~∨/b←<\⍺:⍵      ⍝ none
    ¯1↑b:⍵⍵ ⍵       ⍝ last one
    1 0≡b:⍺⍺ ⍵      ⍝ first of two
    (¯1↓b)⍺⍺ ⍵      ⍝ penultimate?
}
code_colours

test script

Back to: notes

Back to: Workspaces