4,493
edits
Line 122: | Line 122: | ||
0 0 0 0 0 0 0 | 0 0 0 0 0 0 0 | ||
</source> | </source> | ||
Then it is simply a matter of performing a sum-reduce <source lang=apl inline>+/</source> to calculate the total frequency of each character:<ref name="Marshall LambaConf 2019">Marshall Lochbaum used this example as part of his talk on [[Outer Product]] at LambdaConf 2019.</ref> | Then it is simply a matter of performing a sum-reduce <source lang=apl inline>+/</source> to calculate the total frequency of each character:<ref name="Marshall LambaConf 2019">[[Marshall Lochbaum]] used this example as part of his talk on [[Outer Product]] at LambdaConf 2019.</ref> | ||
<source lang=apl> | <source lang=apl> | ||
+/ 'abcd' ∘.= 'cabbage' | +/ 'abcd' ∘.= 'cabbage' |