RosettaCodeData/Task/Y-combinator/F-Sharp/y-combinator-5.fs

5 lines
185 B
Forth
Raw Permalink Normal View History

2025-06-11 20:16:52 -04:00
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.