ymetapost/examples/maybe-list-endofunctor-morphsm.mp

10 lines
231 B
Text
Raw Normal View History

2013-10-01 11:17:56 +00:00
pair tree,list;
resize(.8cm);
list=origin;
tree=list shifted (gu,0);
drawState(list,"\mathtt{[]}");
drawState(tree,"\mathtt{Maybe}");
drawEdgeAngle(list,tree,"\mathtt{toMaybe}",30);
drawEdgeAngle(tree,list,"\mathtt{mToList}",30);