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

scheme is superior

Name: Anonymous 2007-07-29 3:13 ID:IT4FqtD1

the start of a beautiful IRC bot
http://img520.imageshack.us/img520/4650/winra0.png

start of a basic IRC client for the funs
http://img300.imageshack.us/img300/5165/clientdl7.png

see how I can interactively change shit as the program is running. totally sweet

enjoy.

Name: Anonymous 2007-07-29 6:59 ID:wulE4QBG

>>15
OK Bitchy McLikesToWhine, here:

; composes 2 functions
(define (dot2 f g)
  (lambda (x) (f (g x))))

; variable arity function that folds dot2 into its arguments
; and composes as many functions as you like. fag.
(define (dot f g . rest)
  (cond ((null? rest) (dot2 f g))
        (else (dot2 f (apply dot (cons g rest))))))


And now you can do (dot f g h i k). You should be able to figure this shit out on your own.

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