September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
1
Task/Function-definition/Jq/function-definition-1.jq
Normal file
1
Task/Function-definition/Jq/function-definition-1.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
def multiply(a; b): a*b;
|
||||
2
Task/Function-definition/Jq/function-definition-2.jq
Normal file
2
Task/Function-definition/Jq/function-definition-2.jq
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# 2 | generate(. * .) will generate 2, 4, 16, 256, ...
|
||||
def generate(f): def r: ., (f | r); r;
|
||||
1
Task/Function-definition/Jq/function-definition-3.jq
Normal file
1
Task/Function-definition/Jq/function-definition-3.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
def summation(f): reduce .[] as $x (0; . + ($x|f));
|
||||
1
Task/Function-definition/Jq/function-definition-4.jq
Normal file
1
Task/Function-definition/Jq/function-definition-4.jq
Normal file
|
|
@ -0,0 +1 @@
|
|||
summation( .h * .w)
|
||||
Loading…
Add table
Add a link
Reference in a new issue