The `clip` function is quite handy for constraining data to a certain range. Would be nice to include this in the spec