wordcount
The utility of Standard V.2: it reads a file, counts the words longer than two characters and prints the ten most frequent.
oxl run examples/wordcount -- docs/site/README.mdWhat to look at:
@error data Usageand the result() | Usage | IoErrorofmain: no argument isfail Usage{…}, a read error is passed on with?(§6.5); an unhandled error ends the process with a non-zero exit code.Map<str, u64>andcounts[w.lower()] = … + 1(§3.3).- The query
from (w, c) in counts order by c desc, w take n select "{w}: {c}"(§5.9), a lazy iterator. wherein the header of aforloop: a filter without a nestedif.