RosettaCodeData/Task/Higher-order-functions/R/higher-order-functions.r
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

6 lines
142 B
R

f <- function(f0) f0(pi) # calc. the function in pi
tf <- function(x) x^pi # a func. just to test
print(f(sin))
print(f(cos))
print(f(tf))