3 ms·
An example of the fixed-point combinator in Duck: function fixed_point(f) function curry(g, i) function recurse(j) return g(g, j) end
by xigency 12y ago
An example of the fixed-point combinator in Duck:
function fixed_point(f)
function curry(g, i)
function recurse(j)
return g(g, j)
end
return f(recurse, i)
end
function apply(k)
return curry(curry, k)
end
return apply
end