Comparison: Difference between revisions

58 bytes added ,  2 years ago
add equal primitive
(add comparison page)
 
(add equal primitive)
Line 1:
{{primitive|x&lt;y<br>x&gt;y}}
 
The comparison primitives in K are <code><</code>, <code>></code> and <code>>=</code> which stand for lesser andthan, greater than and equal to respectively.
 
character comparison is done via ASCII codes/UTF-8 code points, based on the implementation.
Line 13:
"abc" > "!c "
1 0 1
 
2 56 1 = (2;4;"a")
1 0 0
</pre>