Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Haskell

Name: Anonymous 2007-01-31 22:01

Haskell, single greatest language ever created in the history of man.  Discuss

Name: Anonymous 2007-02-01 7:29

Tru.dat.

Name: Anonymous 2007-02-01 9:50

FUCK OFF"

Name: Anonymous 2007-02-01 13:48

>>3
I'm sorry Anonymous, but the missing double quote is in another thread!

Name: Anonymous 2007-02-01 14:44

Everything worth doing requires monads

Name: Anonymous 2007-02-01 15:05

>>5
Arrows >>> monads.

Name: Anonymous 2007-02-01 17:46

Elitist language. Enjoy your non-sensical syntax and non-existant programming community!

Name: Anonymous 2007-02-02 3:03 (sage)

Non-sensical syntax? You haven't seen ML's.

Name: Anonymous 2007-02-02 6:21

>>7
Yes, it is a language for the elite, I suggest you stick with today's special.

non-existant programming community!

Hm?

Name: Anonymous 2007-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

Name: Anonymous 2007-02-02 8:58

Elitist does not mean l33t am i rite

Name: Anonymous 2007-02-02 9:00

>>10
I AM QUOTED INTERNET HUR HUR

Name: Anonymous 2007-02-02 12:52

>>10
As I said, stick with today's special, Haskell is only for the elite programmers.

main = items >>= return . (concatMap (split '\t')) >>= mapM_ putStrLn

*fapfapfap*

Name: Anonymous 2007-02-02 13:33

>>13
Care to explain what that does?

Name: Anonymous 2007-02-02 13:45

>>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: Anonymous 2007-02-02 13:47

Ah, this works of course.

main = items >>= (mapM_ putStrLn) . (concatMap (split '\t'))

Name: Anonymous 2007-02-02 14:08

Use (putStr . unlines) instead for greater epenis.

Name: Anonymous 2007-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:

print '\n'.join(file('your_file', 'r').read().split('\t'))

only this is a hundred times easier to understand for those who don't know the language.

Name: Anonymous 2007-02-02 14:57

>>18
Thats the WHOLE POINT of Haskell! Only a small group understands it, which, in their opinion, makes then "special". Elitism, I say!

Name: Anonymous 2007-02-02 15:58

only this is a hundred times easier to understand for those who don't know the language.

well duh. You didn't understand that statement you wrote before you learnt the whole object oriented syntax; same with haskell.

Name: Anonymous 2007-02-02 16:02

>>18
Perhaps so, but you don't achieve satori on the way to the solution, now do you?

Name: Anonymous 2007-02-02 16:33

@ARGV='your_file';map print,join"\n",split"\t",<>

Name: Anonymous 2007-02-02 16:56

>>22
Terrible
I'd rather have Haskell

Name: Anonymous 2007-02-02 17:04

>>23
items :: IO [String]
items =
  readFile "file" >>=
  return . (filter (not . ("#" `isPrefixOf`))) . (filter (not . null)) . lines

main :: IO ()
main = items >>= putStr . drawForest . subForest . buildTree >> return ()

Name: Anonymous 2007-02-02 18:20

>>24
On second thoughts, >>22's Perl is not that bad.

Name: Anonymous 2007-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: Anonymous 2007-02-02 18:38

>>26
Because I am a gigantic homosexual faggot, I hope that's a'ight with you.

Name: Anonymous 2009-01-14 14:21

FGGFDS

Name: Trollbot9000 2009-07-01 8:54

null NULL NULL NULL NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL  NULL NULL NULL!

Name: Anonymous 2010-06-25 14:53

WARNING: NECRO POST

Name: Anonymous 2012-03-23 23:37

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

Name: DUBS LIBERATION FRONT 2012-03-24 18:28

NON-DUBS SHALL BE CLEANSED FROM THE EARTH!

Name: Sgt.Kabu媷kiman⬊ 2012-05-28 22:10

Bringing /prog/ back to its people

Don't change these.
Name: Email:
Entire Thread Thread List