[plt-scheme] Syntax for Maximum Number

From: Todd O'Bryan (toddobryan at gmail.com)
Date: Wed Jan 23 14:04:16 EST 2008

I just can't believe no one told you to write your own. :-)

;; my-max: number number -> number
;; consumes two numbers and produces the larger
(define (my-max x y)
  (cond
    [(> x y) x]
    [else y]))

Todd

On Jan 23, 2008 10:27 AM, Robby Findler <robby at cs.uchicago.edu> wrote:

> On Jan 23, 2008 9:22 AM, Matthias Felleisen <matthias at ccs.neu.edu> wrote:
> > [B]e
> > prepared that answers from here force you to empower yourself. They
> > wont be straightfaced answers.
>
> Laughter is king! ;)
>
> Robby
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080123/21d15dec/attachment.html>

Posted on the users mailing list.