[plt-scheme] does = really require 2 arguments ?

From: briand at aracnet.com (briand at aracnet.com)
Date: Sat Feb 28 01:40:03 EST 2004

What an elegant solution.

I just re-wrote the code to check for one argument vs more than 1 :-)



>>>>> "Matthias" == Matthias Felleisen <matthias at ccs.neu.edu> writes:

  Matthias>   For list-related administrative tasks:
  Matthias>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

  Matthias> On Feb 27, 2004, at 8:29 AM, Robby Findler wrote:

  >> (define =2
  >> (case-lambda
  >> [(x) #t]
  >> [y (apply = y)]))

  Matthias> Indeed, you may want a module

  Matthias> (module my-preferences mzscheme
  Matthias>    (provide (rename =2 =))

  Matthias>    (define =2
  Matthias>      (case-lambda
  Matthias>        [(x) #t]
  Matthias>        [y (apply = y)]))
  Matthias>    )

  Matthias> so that you can program in your "own" Scheme. -- Matthias

Posted on the users mailing list.