-
Notifications
You must be signed in to change notification settings - Fork 265
Open
Description
Hi, I have a question, can JSONata have arrow function?
Getting code from this page: https://docs.jsonata.org/programming
$product := function($a, $b) { $a * $b };
$factorial := function($n) { $n = 0 ? 1 : $reduce([1..$n], $product) };The code can be written as follows:
$product := ($a, $b) => $a * $b;
$factorial := $n => $n = 0 ? 1 : $reduce([1..$n], $product);Regards.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels