just←{                                      ⍝ Justify text array.
    ⍺←¯1                                    ⍝ left justify by default.
    ⍺=¯1:(+/∧\' '=⍵)⌽⍵                      ⍝ │left        │
    ⍺=1:(-+/∧\' '=⌽⍵)⌽⍵                     ⍝ │       right│
    (⌈0.5×(+/∧\' '=⍵)-+/∧\' '=⌽⍵)⌽⍵         ⍝ │   centre   │
}

code_colours

test script

Back to: notes

Back to: Workspaces