This file contains 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
import scalaz.Order | |
import scalaz.syntax.order._ | |
case class MyRange[A: Order](l: A, h: A){ | |
def myMethod(b: MyRange[A]): MyRange[A] = { | |
MyRange[A](l min b.l, h max b.h) | |
} | |
} | |
object MyRange { |
This file contains 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
import collection.mutable | |
import org.specs2.mutable._ | |
class ImplicitiSpec extends Specification { | |
type Store=Map[String,String] | |
object Value { | |
val store = new mutable.HashMap[String,String] with mutable.SynchronizedMap[String,String] |
NewerOlder