Skip to content

Instantly share code, notes, and snippets.

@xenophobia
Created November 20, 2013 04:19
Show Gist options
  • Select an option

  • Save xenophobia/7557644 to your computer and use it in GitHub Desktop.

Select an option

Save xenophobia/7557644 to your computer and use it in GitHub Desktop.
match-lambdaをネストした場合のegison3.0.11の挙動
(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