>>7
Yes, it is a language for the elite, I suggest you stick with today's special.
non-existant programming community!
Hm?
Name:
Anonymous2007-02-02 8:38
>>9
Elitist does not mean elite.
Let me quote some sources:
consciousness of or pride in belonging to a select or favored group.
Dictionary.com
One who despises people or things regarded as inferior, especially because of social or intellectual pretension:
answers.com
A person who holds him or herself to higher standards than those of lesser beings because he or she is naturally more honorable, intelligent, funny, good-looking, and awesome than the rest.
urbandictionary.com
Elitism is often used pejoratively to describe a general mindset of arrogance or disregard for the general non-elite public
wikipedia.org
>>14
items is a function that loads some data from a file and returns IO [String], the >>= kind of removes the IO. split splits all the strings in items at tabs, and concatMap concatenates every element into a list. return kind of adds IO to the result and >>= removes it again ;) mapM_ putStrLn just prints out every item in the result and returns IO () or in other words nothing.
It's got to be possible to remove the last >>= and return, but I'm lazy, and this was just some testing code.
Name:
Anonymous2007-02-02 13:47
Ah, this works of course.
main = items >>= (mapM_ putStrLn) . (concatMap (split '\t'))
Name:
Anonymous2007-02-02 14:08
Use (putStr . unlines) instead for greater epenis.
Name:
Anonymous2007-02-02 14:54
>>15
I don't get what's IO and what's >>= doing, but if I got it right, what this does is this:
main :: IO ()
main = items >>= putStr . drawForest . subForest . buildTree >> return ()
Name:
Anonymous2007-02-02 18:20
>>24
On second thoughts, >>22's Perl is not that bad.
Name:
Anonymous2007-02-02 18:30
("#" `isPrefixOf`)
Why in the hell would you make isPrefixOf infix and then curry it? Plus why are you composing two filters, just make a single filter using the magic of boolean operators. And why is "file" hardcoded into items instead of being a parameter? Is this some obscure attempt at sarcasm?
Name:
Anonymous2007-02-02 18:38
>>26
Because I am a gigantic homosexual faggot, I hope that's a'ight with you.