---
name: "Catmandu::Fix::sum"
section: "3pm"
platform: "linux"
package: "libcatmandu-perl"
version: "1.2024-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Fix::sum"
---

# Catmandu::Fix::sum(3pm)

replace the value of an array field with the sum of its elements

## NAME

Catmandu::Fix::sum - replace the value of an array field with the sum of its elements

## SYNOPSIS

```
   # e.g. numbers => [2, 3]
   sum(numbers)
   # numbers => 5
```

## SEE ALSO

Catmandu::Fix
