1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00
Files
stedolan-jq/stdlib.jq

11 lines
240 B
Plaintext

def map(f) = [.[] | f];
def first = .[0];
# def last = .[count-1];
def next = .[count];
# ([])[] would be a decent definition of "empty"
# except ([]) is defined as syntactic sugar for empty
def empty = {}[];
def sort = [group(.) | .[]];