mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
Updating docs
This commit is contained in:
parent
88ce6ffcbe
commit
3e795d020d
@ -1,6 +1,6 @@
|
|||||||
# Array to Map
|
# Array to Map
|
||||||
|
|
||||||
Use this operator to convert an array to..a map. Skips over null values.
|
Use this operator to convert an array to..a map. The indices are used as map keys, null values in the array are skipped over.
|
||||||
|
|
||||||
Behind the scenes, this is implemented using reduce:
|
Behind the scenes, this is implemented using reduce:
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Array to Map
|
# Array to Map
|
||||||
|
|
||||||
Use this operator to convert an array to..a map. Skips over null values.
|
Use this operator to convert an array to..a map. The indices are used as map keys, null values in the array are skipped over.
|
||||||
|
|
||||||
Behind the scenes, this is implemented using reduce:
|
Behind the scenes, this is implemented using reduce:
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Slice Array
|
# Slice/Splice Array
|
||||||
|
|
||||||
The slice array operator takes an array as input and returns a subarray. Like the `jq` equivalent, `.[10:15]` will return an array of length 5, starting from index 10 inclusive, up to index 15 exclusive. Negative numbers count backwards from the end of the array.
|
The slice array operator takes an array as input and returns a subarray. Like the `jq` equivalent, `.[10:15]` will return an array of length 5, starting from index 10 inclusive, up to index 15 exclusive. Negative numbers count backwards from the end of the array.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Slice Array
|
# Slice/Splice Array
|
||||||
|
|
||||||
The slice array operator takes an array as input and returns a subarray. Like the `jq` equivalent, `.[10:15]` will return an array of length 5, starting from index 10 inclusive, up to index 15 exclusive. Negative numbers count backwards from the end of the array.
|
The slice array operator takes an array as input and returns a subarray. Like the `jq` equivalent, `.[10:15]` will return an array of length 5, starting from index 10 inclusive, up to index 15 exclusive. Negative numbers count backwards from the end of the array.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user