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
import WhyIsContravarianceSoHard.{Animal, Cat, Dog, Vet} | |
object WhyIsContravarianceSoHard extends App { | |
//why are contravariance so hard | |
val list: List[Int] = List(1, 2, 3) | |
class Animal | |
class Dog(name: String) extends Animal | |
class Cat(name: String) extends Animal |
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
{ | |
"_readableState": { | |
"objectMode": false, | |
"highWaterMark": 16384, | |
"buffer": { | |
"head": null, | |
"tail": null, | |
"length": 0 | |
}, | |
"length": 0, |
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
{"some sort of new" : "git feature?"} |