Ap - shindakioku/fpfantasy GitHub Wiki

Takes the List of functions and list with data, call the each function from list and set the each param from list of data.

ap :: [Functions] -> [Data] -> [Data]

var addToEnd = (_) => '${_} END';
var result = ap([addToEnd, capitalize], ['some', 'String']);
// capitalize - from Utils (FpFantasy)

print('${result}'); // Some END String END