Date: Thu, 26 Apr 2001 16:23:23 -0500 Subject: Re: functions as arguments to pattern classes From: James McCartney | Block Address To: Reply-to: sc-users@lists.io.com on 4/26/01 3:35 PM, michael at matrix6k@yahoo.com wrote: > what exactly does Plazy do? When it is asked to make a stream it calls a function to create the pattern from which the stream will be made. So instead of specifying what pattern you want you give a function that creates the pattern you want. Plazy({ Pseries(0, 1, rrand(10, 20)) }) Here is the source to Plazy: Plazy : Pattern { var <>func; *new { arg func; ^super.new.func_(func) } asStream { ^func.value.asStream; } }