Wow, it is clear, I like that^_^
From this example, I can easily come to a conclusion that the "selection set" actrually is the same with the "list of entity names".
Look at this,
(setq ent (ssname ss (setq i (1+ i))))___the "selection set"
(setq ent (nth (setq i (1+ i)) lst))____the "list of entity names"
The "ent"s here are the same thing. They both represents the name of a entity.
The only difference is the way they are stored. One is stored in a list----(setq lst (cons ent lst)), the other one is stored in a set----(ssadd ent ss1).
Is that right?