Learn R Programming

container (version 0.3.0)

dictS3binOp: Binary dict operators

Description

Binary operators for Dict objects.

Usage

# S3 method for Dict
+(d1, d2)

# S3 method for Dict -(d1, d2)

Arguments

d1

Dict object

d2

Dict object

Value

Dict object

Details

d1 + d2: return a copy of d1 updated by d2.

d1 - d2: return a copy of d1 with all keys being removed that occured in d2.