0 Replies - 1077 Views - Last Post: 26 September 2009 - 09:23 AM

#1 Jaakuuta  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 163
  • Joined: 02-July 09

[Scheme] Composition Combinator

Posted 26 September 2009 - 09:23 AM

Description: Generates a function that uses two functions, takes one argument, and returns the composition of those two functions together upon the one argument.Composes one function into another function.
(define compose
  (lambda (f g)
    (lambda (x)
      (f (g x)))))

Is This A Good Question/Topic? 0
  • +

Page 1 of 1