Created
December 5, 2014 06:26
-
-
Save timsgardner/4f8b6d58a0c7c7f4d848 to your computer and use it in GitHub Desktop.
mathematica let
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
| SetAttributes[let, HoldAll] | |
| let[bndgs_, expr_] := | |
| Activate[ | |
| Fold[ | |
| {acc, bndg} \[Function] Inactive[With][{bndg}, acc], | |
| Inactivate[expr], | |
| Reverse[Inactivate[bndgs]]]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment