tuple_assignment: Infix operator for python-style tuple assignment

Description Usage Arguments Value Examples

Description

Infix operator for python-style tuple assignment

Usage

1
2
3
l %=% r

g(...)

Arguments

l

left-hand side: "tuple" or variables created by g()

r

right-hand side: Vector to assign to left-hand side variable

...

Left-hand side variables to group

Value

Last assigned value

Examples

1
g(a,b) %=% c(1,2) # equivalent to a <- 1; b <- 2

tidytidbits documentation built on March 8, 2021, 5:07 p.m.