View · Search · Index
No registered users in community 2.0.0
in last 10 minutes

rosetta-distinct-objects.html

Rosetta Example: Multiple distinct objects

package req nx

Set the number of objects that should be created

% set n 100
100

Create a sequence as a list with n instances of the class nx::Object

% set sequence {}
% for {set i 0} {$i < $n} {incr i} {
    lappend sequence [nx::Object new]
}