plus: Addition

Description Usage Arguments Details Value Examples

Description

Modified addition operator to work with strings.

Usage

1
"+"(e1, e2)

Arguments

e1

LHS

e2

RHS

Details

If any of the arguments is of class character, the two arguments are concatenated and returned as string. Else the base implementation of + is called.

Value

A string or numeric.

Examples

1
2
3
4
5
6
{
1+1
"a"+"b"
"a"+1+2
1+2+"a"
}

JarkoDubbeldam/RG documentation built on May 30, 2019, 8 a.m.