[CM] Sequencing Functions

rm at fabula.de rm at fabula.de
Wed Apr 2 04:10:41 PST 2003


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 at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist



More information about the Cmdist mailing list