[Kst] www/areas/extragear/apps/kst/kstscript/docs

George Staikos staikos at kde.org
Fri Jun 3 09:37:17 CEST 2005


SVN commit 421466 by staikos:

add an example


 M  +7 -0      Collection.html  


--- trunk/www/areas/extragear/apps/kst/kstscript/docs/Collection.html #421465:421466
@@ -9,6 +9,13 @@
   This is the generic collection class used by Kst to store lists
                 of objects.  It behaves mostly like an array in JavaScript.  At
                 this time it is read-only.
+
+                Iteration looks something like this:
+                <code><pre>
+                for (i = 0; i < collection.length; ++i) {
+                  // do something with collection[i]
+                }
+                </pre></code>
   </p>
 <br><br><h3>Methods:</h3>
 <ul>


More information about the Kst mailing list