Entropy: Difference between revisions
Content deleted Content added
Line 2,970:
fn H(s: []const u8) f64 {
var counts = [_]
for (s) |ch|
counts[ch] += 1;
Line 2,988:
1.846439344671
</pre>
=={{header|zkl}}==
{{trans|D}}
|