Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes to map function doc #4856

Merged
merged 2 commits into from
Nov 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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. A [user-defined function](../statements.md#func-statements) can be used for `f`.
philrz marked this conversation as resolved.
Show resolved Hide resolved

### 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