RosettaCodeData/Task/Y-combinator/F-Sharp/y-combinator-3.fs
2023-07-01 13:44:08 -04:00

4 lines
185 B
FSharp

let rec fix f = f <| fun() -> fix f
// val fix : f:((unit -> 'a) -> 'a) -> 'a
// the application of this true Y-combinator is the same as for the above non function recursive version.