Within: Difference between revisions

From The K Language Wiki
Content added Content deleted
("Add all appropriate categories to each verb")
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
Line 23: Line 23:
== References ==
== References ==


[[Category:Named verbs]]
[[Category:Verbs]]
[[Category:Verbs]]
[[Category:Named verbs]]
[[Category:Primitives]]
[[Category:Primitives]]

Revision as of 06:43, 9 July 2022

Within
i within a

The within primitive checks if an integer/character i is in the range defined by a two element vector a.


K7

In K7+, the range is inclusive of first element and exclusive of the second element.

 1 within 1 3
1
 3 within 1 3
0
 "a" within "az"
1
 "a" within "cz"
0

K4

In K4[1], the range is inclusive of both the first and the second element.

References