Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yoshihiro503/cc68bac8b836826f0125da6c89dc90b0 to your computer and use it in GitHub Desktop.
Save yoshihiro503/cc68bac8b836826f0125da6c89dc90b0 to your computer and use it in GitHub Desktop.
Scala Erlang
変数 x X
関数適用 f(x, y) f(X, Y)
無名関数 (x) => x+1 fun(x) -> x+1 end
変数定義 val x = 1 X = 1
if式 if(x < 1) 100
else 200
if
  N < 10 -> 100;
  true -> 200
end
パターンマッチング "1" match {
  case 1 => 100
  case 2 => 200
}
case 1 of
  1 -> 100;
  2 -> 200
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment