#haskell - Sat 10 Mar 2007 between 10:32 and 10:42

NY Lost Funds



actionroconnor is still sleepy
roconnoris still sleepy
donsno no, roconnor, always relevant :-)
dancoris there a uniquifier for lists
donsnub
dancorequiv to Set.toList . Set.fromList
dons> nub [1,2,1,2,3,4,1]
lambdabot[1,2,3,4]
dancorah
donsor go via Sets/ or sort a Map
roconnor> nub [1,2,1,2,4,3,1]
lambdabot[1,2,4,3]
roconnor> (Set.toList . Set.fromList) [1,2,1,2,4,3,1]
lambdabotNot in scope: `Set.fromList'
roconnorwell, they are different
dancor:t toList
lambdabotNot in scope: `toList'
roconnornub doesn't return a sorted list
dancor:t S.toList
lambdabotforall a. S.Set a -> [a]
roconnor> (S.toList . S.fromList) [1,2,1,2,4,3,1]
lambdabotNot in scope: `S.fromList'
dancor!!
:t fromList
lambdabotNot in scope: `fromList'
dancorit boggles the mind
roconnordancor: what does?
dancorfromList's out-of-scope-ery
dons> Data.Set.fromList [1,2,1,2,4,3,1]
lambdabotfromList [1,2,3,4]
dons> Data.Set.toList $ Data.Set.fromList [1,2,1,2,4,3,1]
roconnorfromList is defined in both Data.Map and Data.Set
lambdabot[1,2,3,4]
donssounds like we need a web page stating what's in scope and imported as what
dancori'm just confused as to why S.toList is there.
donsndm's cute article, http://programming.reddit.com/info/19a3u/comments
lambdabotTitle: Describing Haskell (reddit.com)
donsi'm really happy about how this page is filling out, http://haskell.org/haskellwiki/Blog_articles
lambdabotTitle: Blog articles - HaskellWiki
donspeople should feel free to use it as inspirations to fill out the less covered libs/tools/techniques..
some stuff on `par` would be nice. the use of xml. more coverage of data structure design

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 107 

IrcArchive

NY Lost Funds