[plt-scheme] Scheme: Subroutines

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Wed Sep 8 11:58:44 EDT 2004

--- Philip Wentworth <philips_desk at earthlink.net> wrote:

> I am having trouble creating subroutines within scheme. I
> have cross referenced sub routines in help desk quite
> often

I'm really confused.  What some languages call subroutines
are called functions in Scheme, and are the core of the
language.  E.g.:

  (define (add-one x)
    (+ x 1))

Does a function do what you want?


Email: noelwelsh <at> yahoo <dot> com
AIM: noelhwelsh

Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.

Posted on the users mailing list.