Advertisement
Guest User

meta

a guest
Sep 30th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.18 KB | None | 0 0
  1.  abstract sealed case class Foop(b: Int)
  2.   object Foop {
  3.     def construct (r: Int): Foop = new Foop(r) {}
  4.     implicit val foopMeta: Meta[Foop] = Meta[Int].nxmap(construct, _.b)
  5.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement