Skip to content

can not pass an array of functions into higher order function like map #268

Description

@cuichenli

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:
image

But it won't work with JSONata4Java as following:
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions