implement: Implement any Feature for an Object

View source: R/core.R

implementR Documentation

Implement any Feature for an Object

Description

Implement any Feature for an Object

Usage

implement(obj, feat)

Arguments

obj

Q7 object (type or instance)

feat

Q7 feature or expression

Value

Q7 object (type or instance)

Examples


Type1 <- type(function(num){})

myType1 <- Type1(1) %>% implement({
    change_number <- function(){
        num + 1
    }
})

myType1$change_number()

iqis/object documentation built on March 23, 2022, 11:19 p.m.