[CM] Sequencing Functions

rm@fabula.de rm@fabula.de
Wed, 2 Apr 2003 14:10:41 +0200


On Tue, Apr 01, 2003 at 10:40:46PM -0800, Ken wrote:
> I'm brain dead but can't figure out how to run functions in sequence.
> (func 1) 
> then
> (func 2)
> 
> (events ......????)

The sequencing syntax in Scheme is:

(begin
  (func 1)
  (func 2)
  ...)

In LISP the same is:

(progn
  (func 1)
  (func 2)
  ...)

Both will evaluate to whatever the last s-expression in
the body evaluates to.

hth Ralf Mattes

> Thanks,
> Ken Locarnini
> 
> 
> 
> 
> _______________________________________________
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist