| 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) 100else 200
|
ifN < 10 -> 100;true -> 200end
|
| パターンマッチング |
"1" match {case 1 => 100case 2 => 200}
|
case 1 of1 -> 100;2 -> 200end
|
More than 5 years have passed since last update.
はじめて学ぶ人のためのScala<->Erlang構文対応表
Last updated at Posted at 2018-10-04
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme