Minimum value of a vector of floats

Can anybody please write a function that will take a vector of floats as its parameter and return the minimum value in the vector?

There are various examples here depending on how you’d like to handle NANs.