shannon←{                       ⍝ Shannon entropy of message ⍵.
    -+/(2∘⍟×⊣)¨({≢⍵}⌸÷≢)⍵
}
code_colours

test script

Back to: notes

Back to: Workspaces