Med: Difference between revisions

From The K Language Wiki
Content added Content deleted
(Created page with "{{primitive|med x|in=K7}} '''Med''' computes the median of a list. In K7, chooses the largest element among the middle elements. <pre> med 3 3 3 3 med 3 4 5 4 med 3 4 5...")
 
("Add category")
Line 17: Line 17:
4
4
</pre>
</pre>

[[Category:Named verbs]]

Revision as of 02:43, 9 July 2022

Med
med x
Supported in K7

Med computes the median of a list.

In K7, chooses the largest element among the middle elements.

 med 3 3 3
3
 med 3 4 5
4
 med 3 4 5 5
5
 med 3 5 4 5
5
 med 3 3 4 5
4