Created
February 21, 2017 06:00
-
-
Save ukitaka/8dee1705f5d1e2a93e617f209dfd46ba to your computer and use it in GitHub Desktop.
左辺からの推論.scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def id[A](a: A): A = a | |
val eDouble1: Double = id(2.123345) | |
id(2) // Int | |
val eDouble2: Double = id(2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment