Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /tests/lamont-tests/test-foreach1.diderot
ViewVC logotype

Annotation of /tests/lamont-tests/test-foreach1.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (view) (download)

1 : glk 4640 int[10] indices = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
2 :    
3 :     strand Particle (real start)
4 :     {
5 :     output real pose = start;
6 :     update
7 :     {
8 :     foreach (int i in indices)
9 :     {
10 :     pose += real(i);
11 :     }
12 :     stabilize;
13 :     }
14 :     }
15 :    
16 :     initially [ Particle(real(n)) | n in 1..10 ];

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0