Skip to content

Instantly share code, notes, and snippets.

@yoshihiro503
Created August 13, 2015 11:13
Show Gist options
  • Save yoshihiro503/b0b4e6c14882a68f80a5 to your computer and use it in GitHub Desktop.
Save yoshihiro503/b0b4e6c14882a68f80a5 to your computer and use it in GitHub Desktop.
Coqでもあのニンジャパターンマッチが使えるぜ ref: http://qiita.com/yoshihiro503/items/c83fb2a6e2a6318db108
Error: Destructing let on this type expects 2 variables.
let (変数名1, ..., 変数名n) := 式1 in ...
match 式1 with
| コンストラクタ(変数名1,...,変数名n) => ...
end
let '(x, y, z) := (1, 2, 3) in
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment