# gel-fold-map

> a fold-map function for gel

Latest version **1.0.0** (published 2014-07-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install gel-fold-map
pnpm add gel-fold-map
yarn add gel-fold-map
bun add gel-fold-map
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-07-16 |
| First published | 2014-07-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | korynunn |

## Links

- npm: https://www.npmjs.com/package/gel-fold-map
- Repository: https://github.com/KoryNunn/gel-fold-map
- Issues: https://github.com/KoryNunn/gel-fold-map/issues
- npm.io page: https://npm.io/package/gel-fold-map

## Recent versions

- 1.0.0 (latest) — 2014-07-16

## README

# gel-fold-map

a fold-map function for gel

*** Does not track keys ***

# usage

    var gelFoldMap = require('gel-fold-map');

Call the gelFoldMap function on your gel instances scope:

    gelFoldMap(gel.scope);

Now you can use foldMap in gel expressions:

Assume data is:

    {
        a: {
            b:1
        },
        c:2
    }

Add all leafs:

    (foldMap
        data
        0
        {
            result value
            (+ result value)
        }
    )

Will result in 3

---
_Source: https://npm.io/package/gel-fold-map · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
