Skip to content

Commit 006784b

Browse files
authored
Merge pull request #404 from sshanks-kx/domain
improve range/domain details and link
2 parents c7e0d45 + 378c63c commit 006784b

File tree

6 files changed

+49
-10
lines changed

6 files changed

+49
-10
lines changed

docs/ref/add.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Add is generally faster than [Subtract](subtract.md).
3838
`+` is a [multithreaded primitive](../kb/mt-primitives.md).
3939

4040

41-
## :fontawesome-solid-sitemap: Implicit iteration
41+
## Implicit iteration
4242

4343
Add is an [atomic function](../basics/atomic.md).
4444

@@ -78,7 +78,10 @@ ghi| 6 -12
7878
```
7979

8080

81-
### Range and domains
81+
## Range and domains
82+
83+
The following shows the resulting output type given the input type of `x` and `y`.
84+
The character representation of the datatypes referenced can be found [`here`](../basics/datatypes.md).
8285

8386
```txt
8487
b g x h i j e f c s p m d z n u v t
@@ -105,6 +108,17 @@ t | t . t t t t t f t . p p p z n t t t
105108

106109
Range: `defijmnptuvz`
107110

111+
For example, adding an integer and a long results in a long.
112+
113+
```q
114+
q)type 55
115+
-7h
116+
q)type 1i
117+
-6h
118+
q)type 1i+55
119+
-7h
120+
```
121+
108122

109123
----
110124
:fontawesome-solid-book:

docs/ref/divide.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ ghi| 1 1
9090

9191
## Range and domains
9292

93+
The following shows the resulting output type given the input type of `x` and `y`.
94+
The character representation of the datatypes referenced can be found [`here`](../basics/datatypes.md).
95+
9396
```txt
9497
b g x h i j e f c s p m d z n u v t
9598
----------------------------------------

docs/ref/lower.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ q)upper`ibm`msft
2929
`IBM`MSFT
3030
```
3131

32-
```txt
33-
domain: b g x h i j e f c s p m d z n u v t
34-
range: . . . . . . . . c s . . . . . . . .
35-
```
36-
3732
## :fontawesome-solid-sitemap: Implicit iteration
3833

3934
`lower` and `upper` are [atomic functions](../basics/atomic.md).
@@ -48,4 +43,4 @@ q)upper(`The;(`quick`brown;(`fox;`jumps`over));`a;`lazy`dog)
4843

4944
----
5045
:fontawesome-solid-book-open:
51-
[Strings](../basics/by-topic.md#strings)
46+
[Strings](../basics/by-topic.md#strings)

docs/ref/multiply.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ ghi| 9 36
8585

8686
## Range and domains
8787

88+
The following shows the resulting output type given the input type of `x` and `y`.
89+
The character representation of the datatypes referenced can be found [`here`](../basics/datatypes.md).
90+
8891
```txt
8992
b g x h i j e f c s p m d z n u v t
9093
----------------------------------------
@@ -110,6 +113,17 @@ t | t . t t t t t f t . . . . . . . . .
110113

111114
Range: `defijmnptuvz`
112115

116+
For example, multiplying an integer and a long results in a long.
117+
118+
```q
119+
q)type 55
120+
-7h
121+
q)type 1i
122+
-6h
123+
q)type 1i*55
124+
-7h
125+
```
126+
113127
----
114128
:fontawesome-solid-book:
115129
[Divide](divide.md),

docs/ref/subtract.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ q)2000.11.22 - 03:44:55.666
2424
`-` is a [multithreaded primitive](../kb/mt-primitives.md).
2525

2626

27-
## :fontawesome-solid-sitemap: Implicit iteration
27+
## Implicit iteration
2828

2929
Subtract is an [atomic function](../basics/atomic.md).
3030

@@ -68,6 +68,9 @@ ghi| 0 0
6868

6969
## Range and domains
7070

71+
The following shows the resulting output type given the input type of `x` and `y`.
72+
The character representation of the datatypes referenced can be found [`here`](../basics/datatypes.md).
73+
7174
```txt
7275
b g x h i j e f c s p m d z n u v t
7376
----------------------------------------
@@ -93,6 +96,16 @@ t | t . t t t t t f t . p p p z n t t t
9396

9497
Range: `defijmnptuvz`
9598

99+
For example, subtracting an integer from a long results in a long.
100+
101+
```q
102+
q)type 55
103+
-7h
104+
q)type 1i
105+
-6h
106+
q)type 55-1i
107+
-7h
108+
```
96109

97110
----
98111
:fontawesome-solid-book:

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ nav:
278278
- lj, ljf: ref/lj.md
279279
- load, rload: ref/load.md
280280
- log, xlog: ref/log.md
281-
- lower: ref/lower.md
281+
- lower, upper: ref/lower.md
282282
- lsq: ref/lsq.md
283283
- max, maxs, mmax: ref/max.md
284284
- md5: ref/md5.md

0 commit comments

Comments
 (0)