From 40a7db87006f70deec83f6f1a1277390e89f826c Mon Sep 17 00:00:00 2001 From: Phil Rzewski Date: Sat, 4 Nov 2023 13:16:45 -0700 Subject: [PATCH] Minor fixes to map function doc (#4856) --- docs/language/functions/map.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/language/functions/map.md b/docs/language/functions/map.md index 2e194a2019..39b2f5b8a7 100644 --- a/docs/language/functions/map.md +++ b/docs/language/functions/map.md @@ -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 @@ -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 '