-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hi,
Sorry maybe my brain still thinks the other way but how would you solve this problem:
bazaarvoice/jolt#700
I cant think of a way without having to create custom recursive max\min as in:
def max_array(array)
if(size($array)==0)
null
else if(size($array)==1)
$array[0]
else max($array[0],max_array($array[1:]))
vs
{
"minPrice": min([for(.prices).price])
"minPrice": max([for(.prices).price])
}
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request