alval←{                 ⍝ Value of name ⍵ in association list ⍺.
    names vals←⍺        ⍝ name vector and corresponding values.
    (names⍳⊂⍵)vals     ⍝ value corresponding to leftmost name.
}
code_colours

test script

Back to: notes

Back to: Workspaces