%.% {matchr} | R Documentation |
Combine two functions into a single function so that the rhs
is called on the arguments first,
then the lhs
.
lhs %.% rhs
lhs |
function to be called second |
rhs |
function to be called first |
a composed function
sq_log <- round %.% sqrt %.% log
Match(
10:20,
i %fn% (sq_log(i) > 2) ->
"big",
. ->
"small"
)