alext←{         ⍝ Association list ⍺ extended with key-value pair ⍵.
    ⍺,⍨∘⊂¨⍵     ⍝ list ⍺ prefixed with new key-value pair
}
code_colours

test script

Back to: notes

Back to: Workspaces