3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
6 # Task: Entropy/Narcissist
7 # SEE: <http://rosettacode.org/wiki/Entropy/Narcissist>
8 module entropy_narcissist
12 # Should be run in the right directory
13 print
"entropy_narcissist.nit".to_path
.read_all
.chars
.to_counter
.entropy