infix: Infix operators

Description Usage Arguments Details Examples

Description

Infix monadic sequence operators

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
lhs %>>% rhs

lhs %v>% rhs

lhs %*>% rhs

lhs %>_% rhs

lhs %>^% rhs

lhs %^>% rhs

lhs %|>% rhs

lhs %||% rhs

lhs %__% rhs

Arguments

lhs

left hand side value

rhs

right hand side value

Details

See the main package help page (?rmonad) or the intro and cheatsheet vignettes for more information.

Examples

1
2
3
4
5
6
7
8
256 %>>% sqrt
256 %v>% sqrt
list(1,2,3) %*>% sum
iris %>_% plot %>>% summary 
1:10 %>^% rgamma(10, 5) %>^% rgamma(10, 6) %^>% cor
1:10 %>>% colSums %|>% sum
stop("die") %||% 4 %>>% sqrt
16 %>>% sqrt %__% 25 %>>% sqrt

arendsee/rmonad documentation built on Dec. 19, 2020, 9:06 p.m.