Personal tools

Talk:Simple Unix tools

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Updated "textbooks" link.)
('nub' isn't an exact analogy of 'uniq')
Line 9: Line 9:
   
 
To really learn the language I suggest [http://www.cs.utah.edu/~hal/docs/daume02yaht.pdf Yet Another Haskell Tutorial], or one of the [[Books|textbooks]]. [[User:DonStewart|dons]] 11:53, 12 October 2006 (UTC)
 
To really learn the language I suggest [http://www.cs.utah.edu/~hal/docs/daume02yaht.pdf Yet Another Haskell Tutorial], or one of the [[Books|textbooks]]. [[User:DonStewart|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]

Revision as of 14:18, 4 November 2011

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]