Variadic fixed-point combinator: Difference between revisions
Content deleted Content added
Realize in F# |
m →{{header|Phix}}: Now documented, added disclaimer |
||
Line 173: | Line 173: | ||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
Translation of Wren/Julia/JavaScript/Python... The file closures.e was added for 1.0.5 |
Translation of Wren/Julia/JavaScript/Python... The file closures.e was added for 1.0.5 [not yet shipped], with the somewhat non-standard requirement of needing captures explicitly stated [and returned if updated], and invokable only via call_lambda(), not direct or [implicit] call_func().<br> |
||
Disclaimer: Don't ask me if this is a proper Y combinator, all I know for sure is it converts a set of functions into a set of closures, without recursion. |
|||
<syntaxhighlight lang="phix"> |
<syntaxhighlight lang="phix"> |
||
include builtins/closures.e -- auto-include in 1.0.5+ (needs to be manually installed and included prior to that) |
include builtins/closures.e -- auto-include in 1.0.5+ (needs to be manually installed and included prior to that) |