We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bdd943 commit 5719f4cCopy full SHA for 5719f4c
1 file changed
jq/script-09.sh
@@ -7,4 +7,4 @@ set -euo pipefail
7
# Your output should contain 6 lines, each with one word and one number on it.
8
# The first line should be "Ahmed 15" with no quotes.
9
10
-jq -r '.[] | [.name, (.scores | reduce .[] as $score (0; . + $score))] | join(" ")' ./scores.json
+jq -r '.[] | [.name, (.scores | add)] | join(" ")' ./scores.json
0 commit comments