[CM] cm 3.6.0 betas available

Adam ahcnz at ihug.co.nz
Mon Apr 19 14:21:27 PDT 2010


Thanks Johannes.    Yes that is a sub-list, but its the single 
next value from another pattern that I'm after, appearing 
in the second pattern. 

The SAL examples are in patterns2.sal  towards the top. 
There, it uses the string  $#  as an "eval" type operator. 

Am not sure how this is done in Scheme.  I've tried 
eval  and promise.  

 

On Tuesday 20 April 2010 08:09 am, you wrote:
> Am 19.04.2010 um 21:48 schrieb Adam:
> > (define p5 (make-cycle ' (200 220 240 240)))
> > (define p7 (make-cycle '(300 320 340 (next p5))))
>
> try this:
>
> (define p5 (make-cycle ' (200 220 240 240)))
> (define p7 (make-cycle (list 300 320 340 p5)))



On Tuesday 20 April 2010 07:48 am, Adam wrote:
> Grace 3.6.0  seems robust and good. Beaut.
>
> There are enough Scheme Tutorials and Examples to get started,
> although more would be helpful.
>
> However I find I'm having trouble constructing nested patterns in
> Grace Scheme.   Could you give an example for me ?
>
> This seems not right;
> (define p5 (make-cycle ' (200 220 240 240)))
> (define p7 (make-cycle '(300 320 340 (next p5))))
>
> and neither does,
> (define ( ...
> 	(process ....
> 		with p5 = (make-cycle ' (200 220 240 240)))
> [or] 	        for p7 = (make-cycle '(300 320 340 (next p5))))




More information about the Cmdist mailing list