mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-05 22:37:42 +02:00
Merge pull request #3155 from dhu23/master
[kdb+/en] replace the example that can't distinguish each-left and each-right adverbs
This commit is contained in:
@@ -689,14 +689,14 @@ first each (1 2 3;4 5 6;7 8 9)
|
|||||||
|
|
||||||
/ each-left (\:) and each-right (/:) modify a two-argument function
|
/ each-left (\:) and each-right (/:) modify a two-argument function
|
||||||
/ to treat one of the arguments and individual variables instead of a list
|
/ to treat one of the arguments and individual variables instead of a list
|
||||||
1 2 3 +\: 1 2 3
|
1 2 3 +\: 11 22 33
|
||||||
/ => 2 3 4
|
/ => 12 23 34
|
||||||
/ => 3 4 5
|
/ => 13 24 35
|
||||||
/ => 4 5 6
|
/ => 14 25 36
|
||||||
1 2 3 +/: 1 2 3
|
1 2 3 +/: 11 22 33
|
||||||
/ => 2 3 4
|
/ => 12 13 14
|
||||||
/ => 3 4 5
|
/ => 23 24 25
|
||||||
/ => 4 5 6
|
/ => 34 35 36
|
||||||
|
|
||||||
/ The true alternatives to loops in q are the adverbs scan (\) and over (/)
|
/ The true alternatives to loops in q are the adverbs scan (\) and over (/)
|
||||||
/ their behaviour differs based on the number of arguments the function they
|
/ their behaviour differs based on the number of arguments the function they
|
||||||
|
Reference in New Issue
Block a user