News for hackers. Stuff that matters.
Re:The Y Combinator by cheese_it on Tuesday June 29, 2021 @08:20PM (#27683504)
Interestingly, mutable data is also sufficient to achieve general recursion in a typed language:

  let fact' = ref (fun x -> x) in
  let fact = fun n -> if n = 0 then 1 else n * !fact' (n-1) in
  fact' := fact; fact 3

There are no comments on this comment yet.