diff options
author | Adam Bard <github@adambard.com> | 2018-08-23 22:37:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-23 22:37:57 -0700 |
commit | b3049e4279cd24d4247b21fd079a1ce275d2fcd9 (patch) | |
tree | b5bd18ee285b502d17edf2b6502863360ec6d14b | |
parent | 8de7389eaeb53c006bb6c8a8bea45641221b680e (diff) | |
parent | 779840f985125d2a39b14ffed15aab8ccc882f66 (diff) |
Merge pull request #3155 from dhu23/master
[kdb+/en] replace the example that can't distinguish each-left and each-right adverbs
-rw-r--r-- | kdb+.html.markdown | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kdb+.html.markdown b/kdb+.html.markdown index 097f177b..027b6571 100644 --- a/kdb+.html.markdown +++ b/kdb+.html.markdown @@ -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 / to treat one of the arguments and individual variables instead of a list -1 2 3 +\: 1 2 3 -/ => 2 3 4 -/ => 3 4 5 -/ => 4 5 6 -1 2 3 +/: 1 2 3 -/ => 2 3 4 -/ => 3 4 5 -/ => 4 5 6 +1 2 3 +\: 11 22 33 +/ => 12 23 34 +/ => 13 24 35 +/ => 14 25 36 +1 2 3 +/: 11 22 33 +/ => 12 13 14 +/ => 23 24 25 +/ => 34 35 36 / 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 |