Algebraic data types: Difference between revisions

(→‎{{header|jq}}: simplify)
Line 1,121:
# will be returned.
# Output: null (failure to match) or a single JSON object giving the bindings if any.
# giving the bindings.
def bindings($x):
if $x == . then {} # by assumption, no bindings are necessary
2,496

edits