Rich Morin wrote: > I'd like to be able to use REs to generate lists of strings. For > example, it might be nice to create a loop such as: > > for $i (sort(p:p5|[0-9A-F]{2}|)) { # "p" operator for "production"? > > and have $i walk from '00' through 'FF'. Or whatever.
You mean: $ch = any(0..9,'A'..'F'); for sort egs $ch _ $ch => $i { ... } where C<egs> is the (hypothetical) eigenstate operator on (hypothetical) superpositions? Even if Larry decides against superpositions, there will definitely be some kind of non-quantum iterator syntax that supports these kinds of permuted sequences. Damian