LoginSignup
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)

( ゚д゚)

(つд⊂)ゴシゴシ

(;゚д゚)

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
What you can do with signing up
2