Skip to content

Commit

Permalink
Add docs for merge function.
Browse files Browse the repository at this point in the history
  • Loading branch information
technosophos committed May 2, 2017
1 parent 083b5b5 commit a48f46e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/dicts.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ inserted.
A common idiom in Sprig templates is to uses `pluck... | first` to get the first
matching key out of a collection of dictionaries.

## merge

Merge two dictionaries into one, giving precedence to the source dictionary:

```
$newdict := merge $dest $source
```


## keys

Expand Down

0 comments on commit a48f46e

Please sign in to comment.