Jump to content

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,471

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.