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

How to get the cudder of a list with foldr?

Name: Anonymous 2007-09-13 18:15 ID:a5wbLjYo

I have managed to write a cudder that requires equality checks... but that's not good enough -- there should be no required functions :/

Name: Anonymous 2007-09-14 7:14 ID:Heaven

[def]foldr
     [ls]f x list[/ls]
     [if][empty][var]list[/var][/empty]
         [var]x[/var]
         [apply][var]f[/var]
                [car][var]list[/var][/car]
                [foldr][var]f[/var]
                       [var]x[/var]
                       [c
udder][var]list[/var][/cudder]
                [/foldr]
         [/apply]
     [/if]
[/def]

Fixed.

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