Logicals: Set of Logicals

Description Super class Methods See Also Examples

Description

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

Super class

set6::Set -> Logicals

Methods

Public methods

Inherited methods

Method new()

Create a new Logicals object.

Usage
Logicals$new()
Details

The Logical set is the set containing TRUE and FALSE.

Returns

A new Logicals object.


Method clone()

The objects of this class are cloneable with this method.

Usage
Logicals$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

Other special sets: Complex, ExtendedReals, Integers, Naturals, NegIntegers, NegRationals, NegReals, PosIntegers, PosNaturals, PosRationals, PosReals, Rationals, Reals, Universal

Examples

1
2
3
l <- Logicals$new()
print(l)
l$contains(list(TRUE, 1, FALSE))

set6 documentation built on Oct. 18, 2021, 5:06 p.m.