X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FMisc.hs;h=b9322ef0c2d49b23f26350af2e32eb04b403b2d5;hb=3228e541540bf785d95bbdbfe4a44c486182e45e;hp=4b285e4cc3b0cff1f8344aa09c905ed6b0c3fe99;hpb=cf7ad91b3a45ea05a8459b9461cdc99210183a20;p=spline3.git diff --git a/src/Misc.hs b/src/Misc.hs index 4b285e4..b9322ef 100644 --- a/src/Misc.hs +++ b/src/Misc.hs @@ -60,6 +60,9 @@ transpose_xz m = -- | Takes a list, and returns True if its elements are pairwise -- equal. Returns False otherwise. +-- +-- Only used in tests. +-- all_equal :: (Eq a) => [a] -> Bool all_equal xs = all (== first_element) other_elements @@ -82,6 +85,8 @@ all_equal xs = -- >>> disjoint xs ys -- False -- +-- Only used in tests. +-- disjoint :: (Eq a) => V.Vector a -> V.Vector a -> Bool disjoint xs ys = intersect xs ys == V.empty