[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 9.36 Card

### Synopsis

    function Card (S: any set): Integer;

### Description

The function ``Card (S)'` returns the number of elements in the set ``S'`.

### Conforming to

``Card'` is an ISO 10206 Extended Pascal extension.

### Example

    program CardDemo;
    var
      Foo: set of 1 .. 100;
    begin
      Foo := [1, 2, 3, 5, 1, 1, 1, 2, 2, 2, 3, 3, 5, 5];  { four elements }
      WriteLn ('foo consists of ', Card (Foo), ' elements')
    end.

### See also

section 9.244 set

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html