Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnibs committed Nov 3, 2023
1 parent d07882d commit 12804c6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/language/functions/map.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ echo '["foo","bar","baz"]' | zq -z 'yield map(this, upper)' -

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

```mdtest-input udf.zed
func floatToTime(x): ( cast(x*1000000000, <time>) )
yield map(this, floatToTime)
```

```mdtest-command
echo '[1697151533.41415,1697151540.716529]' | zq -z -I udf.zed -
echo '[1697151533.41415,1697151540.716529]' | zq -z '
func floatToTime(x): ( cast(x*1000000000, <time>) )
yield map(this, floatToTime)
' -
```
=>
```mdtest-output
Expand Down

0 comments on commit 12804c6

Please sign in to comment.