Skip to content

Instantly share code, notes, and snippets.

@unthingable
unthingable / real.scala
Last active October 20, 2015 22:54
structural variance in json objects
object lisMessages {
case class PayloadData(name: String, newValue: JsValue, oldValue: JsValue)
case class LisPayloadA[C:Format, D:Format] (
uuid : String,
timestamp : String,
source : String,
context : C,
model : String,
from abc import abstractmethod
from itertools import chain, imap
from typing import Any, Iterable
from typing import Callable, Generic, List
from typing import TypeVar
A = TypeVar('A')
B = TypeVar('B')
C = TypeVar('C')