Catmandu::Fix::sum - replace the value of an array field with the sum of its elements
Contents
Name
Catmandu::Fix::sum - replace the value of an array field with the sum of its elements
See Also
Catmandu::Fix
perl v5.40.0 2025-01-17 Catmandu::Fix::sum(3pm)
Synopsis
# e.g. numbers => [2, 3]
sum(numbers)
# numbers => 5
