How to I properly use the min function in Haskell code? : <pre><code>main = print $ smallestFactor 15

factors n = [x | x &lt;- [2..n], n `mod` x == 0]
smallestFactor n = min[factors n]
</code></pre>

<p>I understand that it's a pretty trivial question but someone told me that I could use min get grab out the smallest value of a element list. Though, I'm not exactly sure how one is suppose to use it. </p>
