Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Naturals

Set of Natural Numbers


Description

The mathematical set of natural numbers, defined as the counting numbers. i.e.

0, 1, 2,...

Super classes

Methods

Public methods


Method new()

Create a new Naturals object.

Usage
Naturals$new(lower = 0)
Arguments
lower

numeric. Where to start the set. Advised to ignore, used by child-classes.

Returns

A new Naturals object.


Method clone()

The objects of this class are cloneable with this method.

Usage
Naturals$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also


set6

R6 Mathematical Sets Interface

v0.2.1
MIT + file LICENSE
Authors
Raphael Sonabend [aut, cre] (<https://orcid.org/0000-0001-9225-4654>), Franz Kiraly [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.