Skip to content

Commit

Permalink
Minor fixes to map function doc (#4856)
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz authored Nov 4, 2023
1 parent 7dc91f9 commit 40a7db8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/language/functions/map.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ map(v: array|set, f: function) -> array|set

### Description

The _map_ function applies function f to every element in array or set v and
returns an array or set of the results. Function f must be a function that takes
only one argument. A user defined function can be used for f.
The _map_ function applies function `f` to every element in array or set `v` and
returns an array or set of the results. Function `f` must be a function that takes
only one argument. `f` may be a [user-defined function](../statements.md#func-statements).

### Examples

Expand All @@ -26,7 +26,7 @@ echo '["foo","bar","baz"]' | zq -z 'yield map(this, upper)' -
["FOO","BAR","BAZ"]
```

Using a user defined function to convert an epoch float to a time:
Using a user-defined function to convert an epoch float to a time:

```mdtest-command
echo '[1697151533.41415,1697151540.716529]' | zq -z '
Expand Down

0 comments on commit 40a7db8

Please sign in to comment.