| action | roconnor is still sleepy |
| roconnor | is still sleepy |
| dons | no no, roconnor, always relevant :-) |
| dancor | is there a uniquifier for lists |
| dons | nub |
| dancor | equiv to Set.toList . Set.fromList |
| dons | > nub [1,2,1,2,3,4,1] |
| lambdabot | [1,2,3,4] |
| dancor | ah |
| dons | or 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] |
| lambdabot | Not in scope: `Set.fromList' |
| roconnor | well, they are different |
| dancor | :t toList |
| lambdabot | Not in scope: `toList' |
| roconnor | nub doesn't return a sorted list |
| dancor | :t S.toList |
| lambdabot | forall a. S.Set a -> [a] |
| roconnor | > (S.toList . S.fromList) [1,2,1,2,4,3,1] |
| lambdabot | Not in scope: `S.fromList' |
| dancor | !! :t fromList |
| lambdabot | Not in scope: `fromList' |
| dancor | it boggles the mind |
| roconnor | dancor: what does? |
| dancor | fromList's out-of-scope-ery |
| dons | > Data.Set.fromList [1,2,1,2,4,3,1] |
| lambdabot | fromList [1,2,3,4] |
| dons | > Data.Set.toList $ Data.Set.fromList [1,2,1,2,4,3,1] |
| roconnor | fromList is defined in both Data.Map and Data.Set |
| lambdabot | [1,2,3,4] |
| dons | sounds like we need a web page stating what's in scope and imported as what |
| dancor | i'm just confused as to why S.toList is there. |
| dons | ndm's cute article, http://programming.reddit.com/info/19a3u/comments |
| lambdabot | Title: Describing Haskell (reddit.com) |
| dons | i'm really happy about how this page is filling out, http://haskell.org/haskellwiki/Blog_articles |
| lambdabot | Title: Blog articles - HaskellWiki |
| dons | people 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 |