This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Workaround for the lack of Scheme-style let expressions in JavaScript. | |
* | |
* Usage: | |
* letexp((var1 = <expr1>, var2 = <expr2>, [...] varN = <exprN>) => | |
* <body>) | |
* | |
* Executes and returns the result of the expression defined in <body>. Said | |
* expression can make use of the variables defined above (var1, var2, etc.). In | |
* general, the variables follow the the rules of ECMAScript 6 default function |