Skip to content

Instantly share code, notes, and snippets.

@tkawachi
Created October 14, 2019 09:47
Show Gist options
  • Save tkawachi/59233ccd34e109be08c04be09fc79c6b to your computer and use it in GitHub Desktop.
Save tkawachi/59233ccd34e109be08c04be09fc79c6b to your computer and use it in GitHub Desktop.
$ 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