Skip to content

Instantly share code, notes, and snippets.

@langley
langley / Scala Implicit Example
Created January 7, 2012 16:50
Simple Example of Using a Scala Implicit with sbt and the REPL
This gist shows a VERY simple use of Scala implicits and how to use it from
sbt & the scala console.
Create these two files...
=============================================================================
Xp.scala
-----------------------------------------------------------------------------
package xp {
class Xp {
def beep() = { println("beep!") }