Title: can not pass an array of functions into higher order function like map · Issue #268 · IBM/JSONata4Java · GitHub
Open Graph Title: can not pass an array of functions into higher order function like map · Issue #268 · IBM/JSONata4Java
X Title: can not pass an array of functions into higher order function like map · Issue #268 · IBM/JSONata4Java
Description: 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 f...
Open Graph Description: Following is the code I tried: ( $returnTrue := function() { true }; $returnFalse := function() { false }; $flist := [$returnTrue, $returnFalse]; $map($flist, function($ff) { $ff() }) ) It works co...
X Description: Following is the code I tried: ( $returnTrue := function() { true }; $returnFalse := function() { false }; $flist := [$returnTrue, $returnFalse]; $map($flist, function($ff) { $ff() }) ) It works co...
Opengraph URL: https://github.com/IBM/JSONata4Java/issues/268
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"can not pass an array of functions into higher order function like map","articleBody":"Following is the code I tried:\r\n```\r\n(\r\n $returnTrue := function() {\r\n true\r\n };\r\n\r\n $returnFalse := function() {\r\n false\r\n };\r\n $flist := [$returnTrue, $returnFalse];\r\n\r\n $map($flist, function($ff) {\r\n $ff()\r\n })\r\n)\r\n\r\n```\r\n\r\nIt works correctly on https://try.jsonata.org/ as following: \r\n\r\n\r\nBut it won't work with JSONata4Java as following:\r\n\r\n","author":{"url":"https://github.com/cuichenli","@type":"Person","name":"cuichenli"},"datePublished":"2023-05-17T03:04:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/268/JSONata4Java/issues/268"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:083b49b9-e296-d285-a189-ace206ac763b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE1C:E21C4:93BAF0:C54636:6A4EEE26 |
| html-safe-nonce | 91c428c50890a8bc47c1b3b14b9febf855e85165edc063515efafe2aca9d7e61 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTFDOkUyMUM0OjkzQkFGMDpDNTQ2MzY6NkE0RUVFMjYiLCJ2aXNpdG9yX2lkIjoiODUxNjg1OTg3NDE4MDUyNTYwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b59c98ed6760cff764339d626bb205fc0850a67b0aef4b33836ecb7eb3f952c0 |
| hovercard-subject-tag | issue:1713018568 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IBM/JSONata4Java/268/issue_layout |
| twitter:image | https://opengraph.githubassets.com/741f3c7302d3fa3e58d16f2cfb1d3fa8157b88496e97e0b091752bb2235274ee/IBM/JSONata4Java/issues/268 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/741f3c7302d3fa3e58d16f2cfb1d3fa8157b88496e97e0b091752bb2235274ee/IBM/JSONata4Java/issues/268 |
| og:image:alt | Following is the code I tried: ( $returnTrue := function() { true }; $returnFalse := function() { false }; $flist := [$returnTrue, $returnFalse]; $map($flist, function($ff) { $ff() }) ) It works co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cuichenli |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/IBM/JSONata4Java git https://github.com/IBM/JSONata4Java.git |
| octolytics-dimension-user_id | 1459110 |
| octolytics-dimension-user_login | IBM |
| octolytics-dimension-repository_id | 169904880 |
| octolytics-dimension-repository_nwo | IBM/JSONata4Java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 169904880 |
| octolytics-dimension-repository_network_root_nwo | IBM/JSONata4Java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 00d04d6b867d2f16ab50bebae8ccc56e07c8988b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width