Compose - shindakioku/fpfantasy GitHub Wiki

compose :: [Functions] -> Function(Data)

var a = (x) {
  x.add(3);

  return x;
};
var b = (x) => x.last;
var c = compose([a, b]);

print('${c([1, 2])}'); // 3