Talk:Simple Unix tools

From HaskellWiki
Revision as of 14:18, 4 November 2011 by Aaronmcdaid (talk | contribs) ('nub' isn't an exact analogy of 'uniq')

Jump to: navigation, search

to a beginner like me, this looks very cute. but it's also rather uninformative, since not very thoroughly commented. where do expressions such as words, unwords, concat etc. come from? what do they mean? if i knew more about haskell, i could probably find this out very easily, but i don't. and since beginners seem to be the target audience, i think this page could use some more explanations... certainly looks impressive, though ;-)

regards, v.

Yes, I agree. It is very sparsely commented. However, functions are hyperlinked, taking you to their definition in the Prelude. Also, you can find them via Hoogle.

To really learn the language I suggest Yet Another Haskell Tutorial, or one of the textbooks. dons 11:53, 12 October 2006 (UTC)

uniq is not the same as nub

The 'uniq' command line tool will only discard consecutive dupes. But in Haskell, nub [1,2,1] == [1,2]