| 1 | initial version |
Was given the following (tweaked) solution using lambda functions on sage-support:
X=Poset({1:[],2:[1]})
Hom(X,X)(lambda x:{1:1,2:2}[x])
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.