RosettaCodeData/Task/Y-combinator/F-Sharp/y-combinator-4.fs
2024-03-06 22:25:12 -08: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.