funprog-package: Implementation of pure functional programming languages...

Description Main functions Helper functions purrr syntax

Description

The funprog package implements in R some functions existing in other pure functional programming languages.

Main functions

The package provides high-order functions, for example :

Helper functions

Helper functions can be used in conjunction with the main functions :

purrr syntax

If the purrr package is installed, you can use its special syntax to create very compact anonymous functions, for example ~ abs(.x - .y) > 1 instead of function(x, y) abs(x - y) > 1.


funprog documentation built on Jan. 13, 2021, 11:52 a.m.