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

Pages: 1-

So, this works in Haskell

Name: Anonymous 2008-02-18 5:34

replaceMin :: Tree Int -> Tree Int
replaceMin t = let (t', m) = rpMin (t, m) in t'

rpMin :: (Tree Int, Int) -> (Tree Int, Int)
rpMin (Leaf a, m) = (Leaf m, a)
rpMin (Branch l r, m) = let (l', ml) = rpMin (l, m)
                            (r', mr) = rpMin (r, m)
                   in (Branch l' r', ml `min` mr)

And replaces every Leaf in the tree with the minimum value in the tree. All in one pass.

What other Voodoo magic can that dog do?

Name: Anonymous 2008-02-18 5:36

>>1
that dog

What dog?

Name: Anonymous 2008-02-18 5:48

>>2
The dog that had no pancreas.
How did he secrete digestive enzymes?
Terrible!

Name: Anonymous 2008-02-18 6:01

>>2
It's actually a retarded cat.

Name: Anonymous 2008-02-18 6:01

My dog understands English.
How did he react when I told him all these jokes?
Terrible!

Name: Anonymous 2008-02-18 7:20

>>1
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)

Name: Anonymous 2008-02-18 7:27

fibs = 0 : 1 : [(a + b) | (a, b) <- zip fibs (tail fibs)]

Name: Anonymous 2008-02-18 7:30

>>2
The one he mentioned

Name: Anonymous 2008-02-18 7:42

Done anyone have the photos of Haskell the Dog?

Name: Anonymous 2008-02-18 7:54

Name: Anonymous 2008-02-18 8:09

My dog has no vocal chords.
How does he pronounce cdr?
Terrible.

Name: Anonymous 2008-02-18 9:20

Question: How do I make line numbers appear in EMACS, not on the mode line, but at the beginning of each line?

Name: Anonymous 2008-02-18 9:34

>>12
:set number CR

Name: Anonymous 2008-02-18 9:37

>>13
what

Name: Anonymous 2008-02-18 9:49

>>13
LOOK AT FAGGOT VIMMER

Name: Anonymous 2008-02-18 10:43

Name: Anonymous 2008-02-18 11:00

VIMMER

Name: Anonymous 2008-02-18 11:10

Happy Vimming!

Name: Anonymous 2008-02-18 11:34

>>12
linum-mode

Name: Anonymous 2008-02-18 11:41

>>19
Nope, that's what I use, shows line numbers on the mode line.

Name: Anonymous 2008-02-18 17:29

>>1
lol "All in one pass"

Name: Anonymous 2008-02-18 17:42

My dog has no fingers.
How does he type ESCAPE-META-ALT-CONTROL-SHIFT ?
Terrible !

Name: Anonymous 2008-02-18 20:11

>>22
ALT IS META

Name: Anonymous 2008-02-18 20:48

>>23
CTRL IS ALT

Name: Anonymous 2008-02-18 21:25

>>24
COMMAND IS CONTROL

Name: Anonymous 2008-02-18 23:13

CDR IS MY OTHER CAR

Name: Anonymous 2008-02-19 0:39

(define car cdr)

Name: Anonymous 2008-02-19 1:30

>>27
WHAT HAS SCIENCE DONE?!!!?

Name: Anonymous 2008-02-19 2:59

>>28
Please optimise with interrobangs.

Name: Anonymous 2008-02-19 6:27

>>29
WHAT HAS SCIENCE DONE‽!‽

Name: Anonymous 2009-08-17 0:49

Lain.

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