mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Reverse function. Closes #94.
This commit is contained in:
@@ -718,6 +718,16 @@ sections:
|
||||
input: '[1,2,5,3,5,3,1,3]'
|
||||
output: ['[1,2,3,5]']
|
||||
|
||||
- title: `reverse`
|
||||
body: |
|
||||
|
||||
This function reverses an array.
|
||||
|
||||
examples:
|
||||
- program: 'reverse'
|
||||
input: '[1,2,3,4]'
|
||||
output: ['[4,3,2,1]']
|
||||
|
||||
- title: `contains`
|
||||
body: |
|
||||
|
||||
|
Reference in New Issue
Block a user