home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / scheme / 2582 < prev    next >
Encoding:
Text File  |  1992-11-13  |  883 b   |  20 lines

  1. Newsgroups: comp.lang.scheme
  2. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!vm.univie.ac.at!A4422DAB
  3. From: A4422DAB@vm.univie.ac.at (Erich Neuwirth)
  4. Subject: arity problem
  5. Message-ID: <1992Nov12.234655.12264@newssrv.edvz.univie.ac.at>
  6. Sender: news@newssrv.edvz.univie.ac.at (News System - Vienna University)
  7. Nntp-Posting-Host: helios.edvz.univie.ac.at
  8. Organization: University of Vienna
  9. Date: Thu, 12 Nov 1992 23:43:22 GMT
  10. Lines: 8
  11.  
  12. i want to do the following:
  13. i need a function which takes a logical function as input and
  14. returns the function which is just the negation.
  15. as long as i know the arity of the input function it is easy
  16. to write this meta function just uning lambda, but i want this
  17. operation to work with functions of any arity (=number of arguments)
  18. in the best case it even should work with functions with variable arity.
  19. is there a way to acomplish this?
  20.