inst/doc/lambda.R

## ----wrapri-------------------------------------------------------------------
library("wrapr")
wrapr::defineLambda(name = "l")
ls()

## ----fsq1---------------------------------------------------------------------
l(x, x^2)

## ----fsq2---------------------------------------------------------------------
sapply(1:4, l(x, x^2))

## ----fsqp---------------------------------------------------------------------
1:4 %.>% { .^2 }

## ----ft-----------------------------------------------------------------------
l(x, y, x + 3*y)

Try the wrapr package in your browser

Any scripts or data that you put into this service are public.

wrapr documentation built on Aug. 20, 2023, 1:08 a.m.