Created
November 20, 2013 04:19
-
-
Save xenophobia/7557644 to your computer and use it in GitHub Desktop.
match-lambdaをネストした場合のegison3.0.11の挙動
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
| (define $f | |
| (match-lambda something | |
| {[$x (lambda [$y] (+ x y))] | |
| })) | |
| (test ((f 1) 2)) | |
| #| | |
| > 3 | |
| |# | |
| (define $f-err | |
| (match-lambda something | |
| {[$x (match-lambda something {[$y (+ x y)]})] | |
| })) | |
| (test ((f-err 1) 2)) | |
| #| | |
| Not implemented: evalExpr for MatchLambdaExpr SomethingExpr [(PatVar "y",ApplyExpr (VarExpr "+") (TupleExpr [VarExpr "x",VarExpr "y"]))] | |
| |# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment