Sign in
fuchsia
/
third_party
/
github.com
/
jqlang
/
jq
/
refs/heads/upstream/haskell-version
/
.
/
stdlib.jq
blob: 0da7030f18d8b666c419be1a0dbf2dd618bfea5a [
file
] [
log
] [
blame
]
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
(.)
|
.[]];