RosettaCodeData/Task/First-class-functions/Ela/first-class-functions-1.ela
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

10 lines
216 B
Text

open number //sin,cos,asin,acos
open list //zipWith
cube x = x ** 3
croot x = x ** (1/3)
funclist = [sin, cos, cube]
funclisti = [asin, acos, croot]
zipWith (\f inversef -> (inversef << f) 0.5) funclist funclisti