Unzip

zipper.Unzip
See theUnzip companion object
trait Unzip[A]

A typeclass that defines how a certain data structure can be unzipped and zipped back.

An instance of Unzip can be automatically derived for a case class C with a single field of type List[C]. In a similar situation, but with a different collection class used, say, Vector, an instance can still be derived like so:

 implicit val instance = Unzip.For[C, Vector].derive

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def unzip(node: A): List[A]
def zip(node: A, children: List[A]): A