summaryrefslogtreecommitdiff
path: root/graphics/asymptote/tests/template/imports/composeFunctions.asy
blob: 63678e6c6b52175f6f8e634bf7584850831eb55b (plain)
1
2
3
4
5
6
7
8
9
typedef import(R, F1, F2, I);

typedef R FF(I);

FF compose(F1 f1, F2 f2) {
  return new R(I i) {
    return f1(f2(i));
  };
}