Comparison: Difference between revisions
"Better category ordering, add redirects to categories, fix pseudo-adverb categories"
(add comparison page) |
("Better category ordering, add redirects to categories, fix pseudo-adverb categories") |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1:
{{primitive|x<y<br>x>y<br>x=y}}
The comparison primitives in K are <code><</code>, <code>></code> and <code>
Characters are compared as bytes, except in oK which supports Unicode and compares characters by their code points.
The comparison functions always give a boolean value, 1 or 0.
Line 13:
"abc" > "!c "
1 0 1
2 56 1 = (2;4;"a")
1 0 0
</pre>
[[Category:Verbs]]
[[Category:Operator verbs]]
[[Category:Primitives]]
|