Representation translator between kind F and its associated Rep type.
F
Rep
All of implementations must satisfy the following laws:
x
to(from(x))
m
from(to(m))
Converts data into the meta representation.
data
To be converted.
The corresponding meta representation.
Converts rep into the concrete data.
rep
The corresponding concrete data.
rep - To be converted.
Representation translator between kind
Fand its associatedReptype.All of implementations must satisfy the following laws:
x;to(from(x))equals tox.m;from(to(m))equals tom.