Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thaliaarchi
on April 26, 2022
|
parent
|
context
|
favorite
| on:
Zq: An easier and faster alternative to jq
In fact, jq already has `map`, which would replace the article's pattern of `[.[]|add]` with `map(add)`. It is defined as such:
def map(f): [.[] | f];
Many built-in functions in jq are implemented in jq, in terms of a small set of core primitives. The implementations can be inspected in builtin.jq.
https://github.com/stedolan/jq/blob/master/src/builtin.jq#L3
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://github.com/stedolan/jq/blob/master/src/builtin.jq#L3