Personal tools

Talk:Simple Unix tools

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
('nub' isn't an exact analogy of 'uniq')
(rp aaron)
 
(One intermediate revision by one user not shown)
Line 12: Line 12:
 
''' ''uniq'' is not the same as ''nub'' '''
 
''' ''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]
+
The 'uniq' command line tool will only discard consecutive dupes. But in Haskell, nub [1,2,1] == [1,2] .This is my first comment on this wiki, will I get an email notification of future changes and responses?)
  +
[[User:Aaronmcdaid|Aaronmcdaid]] 14:19, 4 November 2011 (UTC)
  +
  +
:Not unless you add it to your watchlist and also setup email notification for your watchlist. --[[User:Gwern|Gwern]] 20:43, 4 November 2011 (UTC)

Latest revision as of 20:43, 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] .This is my first comment on this wiki, will I get an email notification of future changes and responses?) Aaronmcdaid 14:19, 4 November 2011 (UTC)

Not unless you add it to your watchlist and also setup email notification for your watchlist. --Gwern 20:43, 4 November 2011 (UTC)