DIAG: filter valid points earlier
This saves us some code duplication.
This commit is contained in:
@@ -34,4 +34,4 @@ gifDiag p xs =
|
||||
-- |Same as gifDiag, except that it takes a string containing the
|
||||
-- mesh file content instead of the the points.
|
||||
gifDiagS :: DiagProp -> MeshString -> [(Diagram Cairo R2, GifDelay)]
|
||||
gifDiagS p = gifDiag p . meshToArr
|
||||
gifDiagS p = gifDiag p . filterValidPT p . meshToArr
|
||||
|
||||
Reference in New Issue
Block a user