Learn R Programming

lambda.r (version 1.1.0-3)

duck-typing: Functions for duck typing

Description

Duck typing is a way to emulate type checking by virtue of an object's characteristics as opposed to strong typing.

Usage

argument %isa% type
argument %hasa% property
argument %hasall% property

Arguments

argument
Argument
type
Type
property
Property

Value

  • Boolean values

Details

Duck typing

See Also

%as%

Examples

Run this code
5 %isa% numeric

Run the code above in your browser using DataLab