GiD - The personal pre and post processor

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

# set obj [ objarray_map dst_type {list_arguments body_proc} list_of_arrays

Creates a new objarray of type dst_typewhose i-element is created by evaluating the lambda function with arguments <list_arguments> and body <body_proc> on the i-element of each array in <list_of_arrays>.

e.g.

# example:
set oa1 [ objarray new_from_to intarray 2 5]
set oa2 [ objarray new_from_to intarray 6 9]
objarray_map floatarray {{x y} {expr $x + $y}} [ list $oa1 $oa2]
# --> 8.0 10.0 12.0 14.0

  • No labels