Min: Difference between revisions

From The K Language Wiki
Content added Content deleted
(add min page)
 
m (Lowercase title)
Line 1: Line 1:
{{lowercase title}}
{{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.

Revision as of 20:52, 8 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