|

Y-combinator

Definition of Y-combinator

Y-combinator: The Y-combinator is a function that takes a function and returns another function. The returned function takes two arguments: a number n and a list xs of length n. It returns the first element of xs if n is 0 or 1, and the product of the first two elements of xs otherwise.

Similar Posts

Leave a Reply