diff options
Diffstat (limited to 'Utils.hs')
-rw-r--r-- | Utils.hs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -11,3 +11,6 @@ uniq l = l contains :: Eq a => [a] -> a -> Bool contains l v = isJust $ find (== v) l + +roundUp :: Integral a => a -> a -> a +roundUp n sz = (n + sz - 1) `div` sz * sz |