Within: Difference between revisions

211 bytes added ,  1 year ago
"Paragraph cleanup"
(add within primtive)
 
("Paragraph cleanup")
 
(4 intermediate revisions by 2 users not shown)
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>.
 
== K7 ==
LikeIn all K rangesK7+, the range is inclusive of first element and exclusive of the second element.
 
<pre>
Line 15 ⟶ 16:
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 ==
 
[[Category:Verbs]]
[[Category:Named verbs]]
[[Category:Primitives]]
720

edits