Lambda.r is a language extension that supports a functional programming style in R. As an alternative to the object-oriented systems, lambda.r offers a functional syntax for defining types and functions. Functions can be defined with multiple distinct function clauses similar to how multipart mathematical functions are defined. There is also support for pattern matching and guard expressions to finely control function dispatching, all the while still supporting standard features of R. Lambda.r also introduces its own type system with intuitive type constructors are and type constraints that can optionally be added to function definitions. Attributes are also given the attention they deserve with a clean and convenient syntax that reduces type clutter.
%as%
(Package: lambda.r) :
Define functions and type constructors in lambda.r
The %as% function is used in place of the assignment operator for defining functions and type constructors with lambda.r. The %as% operator is the gateway to a full suite of advanced functional programming features.
● Data Source:
CranContrib
● Keywords: methods, programming
● Alias: EMPTY, %::%, %as%, seal
●
0 images
UseFunction
(Package: lambda.r) :
Primary dispatcher for functional programming
UseFunction manages the dispatching for multipart functions in lambda.r. This is used internally by lambda.r.
These tools are used for debugging and provide a means of examining the evaluation order of the function definitions as well as provide a lambda.r compatible debugger.