RosettaCodeData/Task/Higher-order-functions/F-Sharp/higher-order-functions-1.fs
2023-07-01 13:44:08 -04:00

6 lines
118 B
GLSL

> let twice f x = f (f x);;
val twice : ('a -> 'a) -> 'a -> 'a
> twice System.Math.Sqrt 81.0;;
val it : float = 3.0