Currying functions in R

后端 未结 2 939
野性不改
野性不改 2021-02-07 02:20

Is it possible to use currying in R?

One possibility is to have special paste functions (it can be considered as a follow up to here), e.g. (in

相关标签:
2条回答
  • 2021-02-07 02:51

    The standard place for functional programming in R is now the functional library, this library substitutes the ROxigen library that is discussed here :

    library(functional)
    newfunc <- Curry(oldfunc,x=5)
    
    0 讨论(0)
  • 2021-02-07 03:02

    It is possible to curry in R, and there is a definition in the ROxygen package. See the discussion here

    0 讨论(0)
提交回复
热议问题