wc in D: 712 Characters Without a Single Branch

Mike Parker 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.


The blog:
https://dlang.org/blog/2020/01/28/wc-in-d-712-characters-without-a-single-branch/

Reddit:
https://www.reddit.com/r/programming/comments/ev5w91/wc_in_d_712_characters_without_a_single_branch/

It's also on Hacker News, but please don't post a direct link to 
it if you find it there.

https://news.ycombinator.com/


More information about the Digitalmars-d-announce mailing list