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

SCM Repository

[diderot] Annotation of /branches/lamont/test/test_foreach.diderot
ViewVC logotype

Annotation of /branches/lamont/test/test_foreach.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2316 - (view) (download)

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

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