1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

はじめて学ぶ人のためのScala<->Erlang構文対応表

Last updated at Posted at 2018-10-04
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
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?