---
layout: "default"
title: "min"
description: "Swift documentation for 'min': Returns the lesser of x and y."
keywords: "min,func,swift,documentation"
root: "/v2.2"
---

<div class="declaration" id="func-min-t_-comparable_-t_-t">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-min-t_-comparable_-t_-t">func <wbr>min&lt;T : Comparable&gt;(<wbr>_:<wbr> T, _: T)</a>
        
<div class="comment collapse" id="comment-func-min-t_-comparable_-t_-t"><div class="p">
    <p>Returns the lesser of <