Min: Difference between revisions

From The K Language Wiki
Content added Content deleted
(add min page)
 
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{primitive|x&y}}
{{primitive|x&y}}


'''Min''', also known as '''and''', takes the minimum of two arguments.
'''min''', also known as '''and''', takes the minimum of two arguments.


On boolean arguments, effectively works as an AND operator.
On boolean arguments, effectively works as an AND operator.
Line 14: Line 14:
48 49 99
48 49 99
</pre>
</pre>

[[Category:Verbs]]
[[Category:Operator verbs]]
[[Category:Primitives]]

Latest revision as of 06:41, 9 July 2022

Min
x&y

min, also known as and, takes the minimum of two arguments.

On boolean arguments, effectively works as an AND operator.

The min primitive is fully atomic.

 3 5 7&0 6 9
0 5 7

 "abc"&"01d"
48 49 99