LoginSignup
2
2

More than 5 years have passed since last update.

引数の数間違えたと思ったらタプルになってた

Posted at
scala> def f[A](x: A) = x
f: [A](x: A)A

scala> f(1, 2)
res1: (Int, Int) = (1,2)

( ゚д゚)

(つд⊂)ゴシゴシ

(;゚д゚)

2
2
2

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
2
2