Hi Martin,
You could think of it as what Tsjerk purported:
# pseudocode for iterate
def iterate(sel,cmd):
for x in selection:
return cmd(x)
where each 'function' cmd would return a value per atom.
For example,
# pseucode for an instance of iterate
def iterate(organic, 'print b')
for
Dear All
I am trying to get behind the way 'iterate' works, since I see it quite
frequently in PyMOL scripts.
The example in the help page is a bit limited in the sense that I cant
explain to myself what actually is happening.
Say, if I were to write the functionality of 'iterate' using a for-lo