diff options
author | root <root@learnxinyminutes.com> | 2018-08-25 02:38:11 +0000 |
---|---|---|
committer | root <root@learnxinyminutes.com> | 2018-08-25 02:38:11 +0000 |
commit | afd18bd4ed4a898e493e99459cc72aaf97163272 (patch) | |
tree | 4770ac0eafe30e8b4e81c573a13b519ec37dfda6 /kdb+.html.markdown | |
parent | 6f2003a31f900c1ce3ff1dde64b17c7ac02350cc (diff) | |
parent | 5359298b0d5bd3f18cdd8521abf41e8048cac5f6 (diff) |
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
Diffstat (limited to 'kdb+.html.markdown')
-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 |