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

Pages: 1-

ocaml shit

Name: Anonymous 2010-04-11 21:31

i'm writing a function that counts how many integers are in an int list but ocaml is forcing me to use it's gay "polymorphic" alpha list. how do i tell ocaml that my function wants to accept only int lists as valid parameters?

Name: Anonymous 2010-04-11 21:35

never mind i figure it out. you fags wouldn't have helped anyways

Name: Anonymous 2010-04-11 21:37

We wouldn't have helped because what you're trying to do is wrong-headed and dumb, and because we aren't your Google.

Name: Anonymous 2010-04-11 21:37

>>2

I'm glad we could come to an understanding.

Name: Anonymous 2010-04-12 12:18

>>1
And now, in anticipation of a future where this thread is bumped by the Necromongers...

let rec len : int list -> int =
  function [] -> 0
         | x :: xs -> 1 + len xs

Name: Anonymous 2010-04-12 13:01

>>5
Not tail recursive.

Name: Anonymous 2010-04-12 13:05

>>6
Like I care.

Great job, anuslord. You went to the trouble of finding my post a mere 40 minutes after I made it, and bumped the thread, and now it will get imageboard spam. I hope you're proud of yourself.

Name: Anonymous 2010-04-12 13:12

>>7
The first time I visit /prog/ during a day, I check all the threads that were posted since I last visited. This was a thread I hadn't seen...
How do you know it would get imageboard spam? And where the hell did that spam come from anyway? It's probably the same person as HMAmemefan ...

Name: Anonymous 2010-04-12 14:16

>>9
A few observations:

1. You didn't sage. There's no excuse for that. (Not even the one you're about to post.)
2. Look around, the spam is happening to everything. The ability to generalize is pretty much a given here. You know better.
3. Where it comes from (imageboards, ostensibly--though probably not in fact) is irrelevant.

Name: Anonymous 2010-04-12 14:23

>>12
Proof that HMA is a group effort. Monkeys in a cage perhaps?

Much more of this and I'm going to have Stockholm Syndrome.

Name: Anonymous 2010-04-12 14:49

Gee, the most recent posts are a little thin on the ground lately.
Almost as if I had a Greasemonkey script to get rid of shitposts...

Name: Anonymous 2010-04-12 15:43

>>11
I (almost) always sage except when I'm responding to threads which are not on the front page, as that way people might not be able to see the answer. That was a legitimate bump.

Name: Anonymous 2010-04-13 10:59

>> 18
Oh, that is the whole reason of using sage, to maintain threads away from the front page. Thus, idiots can post to the front page and you can talk all you can really, on the other threads.

At least that's how sage is used at 2ch. Maybe things are different around here, maybe if so 4chan can learn something.

Name: Anonymous 2010-04-13 11:00

>>20
I failed!
>>18
Fixed.

Name: Anonymous 2010-12-17 1:40

This post brought to you by the Gay Nigger Association of America

Name: Anonymous 2011-06-16 12:14

>>1-6,8-1000
STAY HERE

Name: Anonymous 2011-06-16 12:15

>>1-7,8-1000
STAY HERE

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