Following is the code I tried:
(
$returnTrue := function() {
true
};
$returnFalse := function() {
false
};
$flist := [$returnTrue, $returnFalse];
$map($flist, function($ff) {
$ff()
})
)
It works correctly on https://try.jsonata.org/ as following:

But it won't work with JSONata4Java as following:
