Suppose I have a array of path
path pat; I try to define a function like this:
def drawpaths(expr plists)= for p in plists: pickup defaultpen; draw pat[p]; endfor enddef
so that I can draw the path
0,2,3 simply by call
Unfortunately, metapost don't support for loops of a list, is there any solution?