Script Classes for Adventure Games/Set Class

From SCI Wiki
Revision as of 03:04, 9 December 2015 by Andrew Branscom (talk | contribs)
Jump to navigationJump to search

Official SCI Documentation

Chapter: 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 16 | 17 | 18 | 18 | 19 | 20
21 | 22 | 23 | 24 | 25 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | Index


The Set Class

Author: Jeff Stephenson

Date: 5 April 1988

 


The Set Class

A Set is a kind of List which does not contain duplicate elements: adding an object to a Set

which already contains the object does not change the Set.

In file: system.sc
Inherits from: Collection
Inherited by: EventHandler


Properties

 


Methods


add: element [element ...]

Adds each element to the set only if it is not already a member of the set.

 

Notes


 

Table of Contents

 

< Previous: The List Class Next: The EventHandler Class >