Useless instructions: Difference between revisions
→{{header|jq}}
m (→{{header|Phix}}: replaced '\x03' with '\#03' (both will work on 1.0.2+)) |
|||
Line 175:
map[0:{}]
</pre>
=={{header|jq}}==
'''The following remarks apply to both the C and Go implementations of jq.'''
jq is fundamentally a stream-oriented language, but the collection of built-in
functions (in builtin.jq) includes array-oriented definitions for the sake of familiarity and/or convenience. This duality results in what could be considered redundancies.
For example, consider the 'any' and 'all' functions, all versions of which have short-circuit semantics. The array-oriented versions of these functions are defined in terms of the more fundamental stream-oriented functions, making the redundancy plain to see:
```
def all: all(.[]; .);
def any: any(.[]; .);
```
=={{header|Julia}}==
|