pop: Pop Modello Objects

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

S3 method to pop (remove) numbers or graphs from their respective arrays (NUMBERS_ or GRAPHS_).

Usage

1
2
3
4
5
6
7
pop(x)

## S3 method for class 'modello_number'
pop(x)

## S3 method for class 'graph'
pop(x)

Arguments

x

a reference object of call 'number' or 'graph'

Value

Returns invisible x

Author(s)

Filippo Monari

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
modello.init(10, 10, 10, 10)
x = number(1)
x$is.linked() # TRUE
pop(x)
x$is.linked() # FALSE
modello.close()
modello.init(10, 10, 10, 10)
g = graph.open()
graph.close()
g$is.linked() # TRUE
pop(g)
g$is.linked() # FALSE
modello.close()

modello documentation built on Feb. 2, 2021, 9:06 a.m.

Related to pop in modello...