Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import shapeless._
- abstract class Historical[A, L <: HList]{
- def cur: A
- def past: L
- def map[B](f: A => B): Historical[B, A :: L]
- //really can't have a flatMap, Historical[_, L] ? How many things will always have same history?
- def clear: Historical[A, HNil]
- //def walk[N <: Nat](implicit d: Drop[N, L]): Historical[]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement