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

i have a scheme question

Name: Anonymous 2012-07-18 1:56

i have created a function called "repeat" that composes a function with itself n times. i have written it in two different ways. one works and the other doesn't. can you help me understand why the one doesn't work? tia.

the code:
https://gist.github.com/3134464

Name: Anonymous 2012-07-18 3:13

>>7

yeah, just replace (compose ___F___ ___G___) with


(let ((f ___F___)
      (g ___G___))
  (lambda (x)
    (f (g x)))


wherever compose is called.

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