wc in D: 712 Characters Without a Single Branch
aldacron at gmail.com
Tue Jan 28 14:01:35 UTC 2020
Robert Schadek was inspired by a post he saw on Hacker News a
while back showing an implementation of wc in Haskell totaling 80
lines. He decided he could do better in D. So he did. This post
on the D blog shows what he came up with and also provides a
brief introduction to ranges.
It's also on Hacker News, but please don't post a direct link to
it if you find it there.
More information about the Digitalmars-d-announce