First class environments: Difference between revisions
→{{header|jq}}: space vs time
(mv jq to its proper place alphabetically) |
(→{{header|jq}}: space vs time) |
||
Line 694:
Finally, to present the results in tabular form,
# Apply a filter to a stream,
# and ALSO emit the last item in the stream filtered through "final"
def filter_and_last(s; filter; final):
| ($array[] | filter), ($array[-1] | final);
|