jonthegeek / factory

factory: Build Function Factories
Other
49 stars 6 forks source link

Lambda Functions #37

Open jonthegeek opened 4 years ago

jonthegeek commented 4 years ago

As a factory maker, I'd like to provide the function in lambda notation, so that I can more quickly build functions.

rlang::as_function should make this relatively straightforward to implement, I think. Maybe even purrr::as_mapper.

Note that lambda functions come out kinda weird, so be ready for that.