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...")
 
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
 
(2 intermediate revisions by the same user not shown)
Line 17: Line 17:
4
4
</pre>
</pre>

[[Category:Verbs]]
[[Category:Named verbs]]
[[Category:Primitives]]

Latest revision as of 06:41, 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