Within: Difference between revisions

143 bytes added ,  2 years ago
add k4
(add within primtive)
 
(add k4)
Line 3:
The '''within''' primitive checks if an integer/character <code>i</code> is in the range defined by a two element vector <code>a</code>.
 
 
Like all K ranges, the range is inclusive of first element and exclusive of the second element.
== K7 ==
LikeIn all K rangesK7+, the range is inclusive of first element and exclusive of the second element.
 
<pre>
Line 15 ⟶ 17:
0
</pre>
 
== K4 ==
In K4<ref>https://code.kx.com/q/ref/within/</ref>, the range is inclusive of both the first and the second element.
 
== References ==