[Tutor] lists - append - unique and sorted

Thorsten Kampe thorsten at thorstenkampe.de
Wed Jun 6 18:01:47 CEST 2007


* roberto (Wed, 6 Jun 2007 17:17:05 +0200)
> can i append a item to a list using criterias:
> 
> - UNIQUE - if there already exist don't append

test whether it's already in the with "in" or use sets
 
> and/or
> 
> - SORTED - INSERT in the correct place using some criteria?

insert and then sort again by this criterion



More information about the Tutor mailing list