R: Set of Logicals

LogicalSet {set6} | R Documentation

## Set of Logicals

### Description

The `LogicalSet` is defined as the Set containing the elements `TRUE` and `FALSE`.

### Super class

`set6::Set` -> `LogicalSet`

### Methods

#### Public methods

- `LogicalSet$new()`

- `LogicalSet$clone()`

Inherited methods

- `set6::Set$add()`

- `set6::Set$contains()`

- `set6::Set$equals()`

- `set6::Set$isSubset()`

- `set6::Set$multiplicity()`

- `set6::Set$print()`

- `set6::Set$remove()`

- `set6::Set$strprint()`

- `set6::Set$summary()`

#### Method `new()`

Create a new `LogicalSet` object.

##### Usage

    LogicalSet$new()

##### Details

The Logical set is the set containing `TRUE` and `FALSE`.

##### Returns

A new `LogicalSet` object.

#### Method `clone()`

The objects of this class are cloneable with this method.

##### Usage

    LogicalSet$clone(deep = FALSE)

##### Arguments

`deep`

  Whether to make a deep clone.

### Examples

    l <- LogicalSet$new()
    print(l)
    l$contains(list(TRUE, 1, FALSE))

[Package set6 version 0.2.0 Index]