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

Pages: 1-4041-

the Great HASKELL Ferret

Name: Anonymous 2008-03-30 14:58


               |\___
               |Λ_Λ/   - I, the Great HASKELL Ferret, have bested the /prog/snake!
'-._        \  |  / / ___.....___
    `.__     \_| |_/-'        ,-.`-,
        `''----| -'          ( λ )  `._
               |              `-'      (
                                        \
                              .         \
                               \---..,--'
   ................._           --...--,
                     `-.._         _.-'
                          `'-----''


there's no denying it lol

Name: Anonymous 2008-03-30 15:09

any /prog/ regulars here? look at this faggot.
/prog/ is shit.

Name: sage 2008-03-30 15:09

sage

Name: Anonymous 2008-03-30 15:42

That's it, I'm outta here.

Name: Anonymous 2008-03-30 15:46

This is a Ruby Ferret (read W(P)GtR) also I invented that meme.

Name: Anonymous 2008-03-30 15:50

>>2-4
Funny, I would have never assumed that such blatant attempts at posing as different people don't happen on /prog/.

Name: Anonymous 2008-03-30 15:57

Banping a shitty thread.

Name: Anonymous 2008-03-30 15:59

>>6
Learn English and then try again to make a comprehensible sentence.
By the way, I'm >>2 and not anyone else in this thread.

Name: Anonymous 2008-03-30 16:02

>>8
By the way. I'm >>2 and everyone else in this thread, and I have trolled you exponentially.
Fixed.

Name: Anonymous 2008-03-30 16:13

>>9
No.
That trolled exponentially bullshit is pure BS coming from redditfags.
GTFO.

Name: Anonymous 2008-03-30 16:53

>>10
''GTFO`` is /b/tard talk.

Name: Anonymous 2008-03-30 17:11

>>11
BS. GTFO's been around more than /b/ or you.
Next thing you're going to tell me lol came from /b/.

Name: Anonymous 2008-03-30 17:15

>>12
I regret to inform you that you were actually just trolled a short while ago, that you have lost everything, and that you should have a nice day.

Name: Anonymous 2008-03-30 17:22

>>13
no, >>1 is not a troll.
Trolls have dignity, I've been long enough on usenet son, believe me.

Name: Anonymous 2008-03-30 17:30

Question:
In EMACS, when I want to load a function for the whole session, what hook do I use? 'emacs-startup-hook runs the function, but the effect ceases when I open a new buffer.

Name: Anonymous 2008-03-30 19:24

>>15
Read SICP.

Name: Anonymous 2008-03-30 21:44

>>15
You just define it....

Name: Anonymous 2008-03-30 21:46

>>15
defun foo()
(car (other cdr))

Name: Anonymous 2008-03-31 2:47

>>15
Use the new-buffer-hook, which doesn't exist yet.

Name: Anonymous 2008-03-31 5:14

>>19
import from ______future______

Name: Anonymous 2008-03-31 5:24

itC BitC


           /      \
        \  \  ,,  /  /
         '-.`\()/`.-'
        .--_'(  )'_--.
       / /` /`""`\ `\ \
        |  |  ><  |  |
        \  \      /  /
            '.__.'

Name: Anonymous 2008-03-31 7:01

I am sorry to pollute your nice haskell ferret thread, but I just started reading YAHT, and I have a question about Exercise 3.4:

Use the functions mentioned in this section (you will need two of them) to compute the number of lower-case letters in a string. For instance, on “aBCde” it should return 3.

Is there a way to write it with foldl/r? I am familiar with perl, and foldl looks a lot like reduce from List::Util, but I tried many combinations and all of them failed (foldl (+1) 0 filter (Char.isLower) "aBCde" foldl (1+) 0 filter (Char.isLower) "aBCde", ie ignoring values and only using item count, in perl that would be reduce{$a+1} 0, @list)

Also, will it be explained in yaht why length(filter (Char.isLower) "aBCde") works, but length filter (Char.isLower) "aBCde" does not?

Name: Anonymous 2008-03-31 7:20

Is there a way to write it with foldl/r? I am familiar with perl, and foldl looks a lot like reduce from List::Util, but I tried many combinations and all of them failed (foldl (+1) 0 filter (Char.isLower) "aBCde" foldl (1+) 0 filter (Char.isLower) "aBCde", ie ignoring values and only using item count, in perl that would be reduce{$a+1} 0, @list)
Sure: foldr (\ c s -> if Char.isLower c then s + 1 else s) 0 "aBCde"
Also, will it be explained in yaht why length(filter (Char.isLower) "aBCde") works, but length filter (Char.isLower) "aBCde" does not?
Write Lisp until you are more sure of the precedence and such: (length (filter Char.isLower "aBCde"))

Your failed example calls length with three parameters.

Name: Anonymous 2008-03-31 7:26

Oh, and if you wanted a silly solution for counting lower-case letters:
(foldr (const (+1)) 0 (filter Char.isLower "aBCde"))

Name: Anonymous 2008-03-31 7:29

>>1
fucking faggot I fucking fucking hate you.

Name: Anonymous 2008-03-31 8:45

               |\___
               |¤_¤/
'-._        \  |  / / ___.....___
    `.__     \_| |_/-'        ,-.`-,
        `''----| -'          ( X )  `._
               |              `-'      (   I AM ALLERGIC TO FERRETS
                                        \
                                        \
                                /--..,--'
                                |______
   ................._           \-...--\,
                     `-.._         _.-'
                          `'-----''

Name: Anonymous 2008-03-31 9:04

NOOOOOOOOOOOOOOOOOOOOoooooooooooooooooooooooooooooooooooo

Name: Anonymous 2008-03-31 12:05

Say hi to Haskell in Heaven.

Name: Anonymous 2008-03-31 12:06

>>20
_________"""FIOC"""_________

Name: Anonymous 2008-03-31 12:27

Thanks

*Main> :t foldl
foldl :: forall a b. (a -> b -> a) -> a -> [b] -> a
*Main> :t foldr
foldr :: forall a b. (a -> b -> b) -> b -> [a] -> b


what does forall mean? wouldn't (a -> b -> a) -> a -> [b] -> a be enough?

Name: Anonymous 2008-03-31 12:30

Oh I'm sorry, i just accidentally ran interpreter with some unnecessary flags

Name: Anonymous 2008-03-31 13:43

>>31
oh shi-

Forall is some legacy shit left over from some old version of Haskell where it wasn't inferred automatically.

No one except SPJ knows what it does.

Name: Anonymous 2008-03-31 14:19

>>32
WARNING: TROLL

Name: Anonymous 2008-03-31 14:24

Name: Anonymous 2008-03-31 14:26

>>34
GET THE FUCK OUT OF MY /PROG/ LITTLE RUBY FERRET

Name: Anonymous 2008-03-31 15:55

                           ,--------------------------------------,
                         /                                         `-,
                       |                                              \
                      |          OH GOD WHAT HAS SCIENCE DONE          |
               `,``````..                                              |
            ,,````        ``\,          WHAT THE FUCK AM I             |
             _..-'''`'`'`'`'``-`\,                                     |
          ,-/                     `-,                                  |
       ,-/                           `-                                |
      /       __..                     `,                              |
     /     ,'     `-,               ,-'`-,                             |
     |    |          |             |      |                            |
     \    |    P    /              `, P   |                           ,/
     |     `,     ,,                 `---'                          ,/
     |       ```''      ,___/\___,       /----------,     ,,/------'
     |            .,____`_/    \_'___,  /           | ,,/'
     |              `__            _/  /            |/
     |                  `-_______-'    |
    /                                  |
   /                                   \,
  /                                      `\,,
 /                                           `--,
,                                               ``,
`,                                                  \
  `------------------------------------------------/'

Name: Anonymous 2008-03-31 15:57

                           ,--------------------------------------,
                         /                                         `-,
                       |                                              \
                      |          OH GOD WHAT HAS SCIENCE DONE          |
               `,``````..                                              |
            ,,````        ``\,          WHAT THE FUCK AM I             |
             _..-'''`'`'`'`'``-`\,                                     |
          ,-/                     `-,                                  |
       ,-/                           `-                                |
      /       __..                     `,                              |
     /     ,'     `-,               ,-'`-,                             |
     |    |          |             |      |                            |
     \    |    P    /              `, P   |                           ,/
     |     `,     ,,                 `---'                          ,/
     |       ```''      ,___/\___,       /----------,     ,,/------'
     |            .,____`_/    \_'___,  /           | ,,/'
     |              `__            _/  /            |/
     |                  `-_______-'    |
    /                                  |
   /                                   \,
  /                                      `\,,
 /                                           `--,
,                                               ``,
`,                                                  \
  `------------------------------------------------/'

Name: Anonymous 2008-03-31 15:59

>>36-37
A pidgin.

Name: Anonymous 2008-03-31 16:12

>>38
Haha funny (I get this, PidGin shipped with Ubuntu Linux) ;)

Name: Anonymous 2008-03-31 16:37

>>39
back to /g/, please

Name: Anonymous 2008-03-31 16:43

>>40
Stop being mean.

Name: Anonymous 2008-03-31 21:05

Is the ferret named Lemmiwinks?

Name: Anonymous 2008-03-31 21:30

>>42
Stop stuffing animals up your ass.

Name: Anonymous 2008-03-31 21:46

The /prog/snake dwells in dark moist orifices

Name: Anonymous 2009-03-06 5:55


//youtube?

Name: Anonymous 2009-03-06 8:17

Of things about it   or your opinion   on FRP 1?

Name: Anonymous 2011-02-03 4:31

<

Name: Anonymous 2011-02-03 5:24


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