Created
October 14, 2019 09:47
-
-
Save tkawachi/59233ccd34e109be08c04be09fc79c6b to your computer and use it in GitHub Desktop.
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
$ amm | |
Loading... | |
Welcome to the Ammonite Repl 1.3.3 | |
(Scala 2.12.7 Java 1.8.0_212) | |
If you like Ammonite, please support our development at www.patreon.com/lihaoyi | |
@ trait A { def a(x: Int, y: Int): Int } | |
defined trait A | |
@ def a: A = { case (x: Int, y: Int) => x + y } | |
defined function a | |
@ def a: A = (x: Int, y: Int) => x + y | |
defined function a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment