✔ '423' is valid vanilla siteswap
ℹ It uses 3 props
ℹ It is symmetrical with period 3
July 9, 2026
timelinetimelinetimelineobject
class
generic
method
Siteswap
├── vanillaSiteswap
└── synchronousSiteswap
Siteswap class constructorSiteswap with property validatorvanillaSiteswap with computed propertiesvanillaSiteswap <- new_class(
"vanillaSiteswap",
parent = Siteswap,
properties = list(
throws = new_property(
class = class_integer,
getter = function(self) {
get_throws(self@sequence) # e.g. "423" -> c(4, 2, 3)
}
),
n_props = new_property(
class = class_numeric,
getter = function(self) {
mean(self@throws)
}
),
valid = new_property(
class = class_logical,
getter = function(self) {
no_collisions(self@throws) && is_whole_number(self@n_props)
}
)
)
)<vanillaSiteswap>
@ sequence: chr "423"
@ throws : num [1:3] 4 2 3
@ n_props : num 3
@ valid : logi TRUE
roxygen2 8.0.0 provides first-class support for S7.
✓ Generics
✗ Methods
✓ Classes
@param, @prop
@export!in any .R file (in S7 v0.2.2):
What are your questions?