Skip to main content
Top

1982 | OriginalPaper | Chapter

Set types

Author : Professor Dr. Niklaus Wirth

Published in: Programming in Modula-2

Publisher: Springer Berlin Heidelberg

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Every data type defines a set of values. In the case of a set type S, this set of values is the set of all possible sets consisting of elements from a given base type B. For example, if the base type B is the subrange $$ B = [0 .. 1] $$ and the set type S is declared as $$ S = SET OF B $$ then the values of type S are the sets {}, {0}, {1}, {0,1}. If the base type has n distinct values, then its set type has 2 to the power of n values.{} denotes the empty set.

Metadata
Title
Set types
Author
Professor Dr. Niklaus Wirth
Copyright Year
1982
Publisher
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/978-3-642-96717-7_19

Premium Partner