3 ms·
There's a spectrum between "simple" and "wrong" though. I thought grep/uniq/tr were fine, as a correct implementation would be a straightforward extension of t
by ajross 16y ago
There's a spectrum between "simple" and "wrong" though. I thought grep/uniq/tr were fine, as a correct implementation would be a straightforward extension of the code presented (well, the size bound on uniq is real, but swap storage is free these days so who care?).
The tail example wasn't like that. It's the wrong algorithm. It's also in a class of algorithms that's particularly difficult in functional languages.
Showing easy examples and skipping the hard stuff, IMHO, is endemic with "enthusiast" languages like this. I don't think that shows the language in a very good light.