packages feed

uniqueness-periods-vector 0.2.0.0 → 0.3.0.0

raw patch · 3 files changed

+9/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -8,3 +8,8 @@  * Second version. Added the new type constuctor UG3 to the UniquenessGeneral1 data type. Added new functions related to uniquenessPeriodsVector3.  +## 0.3.0.0 -- 2020-09-09++* Third version. Fixed issue with helpUPV3 function. ++
String/Languages/UniquenessPeriods/Vector.hs view
@@ -67,10 +67,11 @@                   V.unsafeIndex v2 $ 0),v3)) vs . V.partition (\(_,xs) -> xs == (snd . V.unsafeIndex x $ 0)) $ x in                      V.filter (\(ys,!zs) -> not (null ys) && (zs `notElem` whspss)) . V.unfoldr f $ v1 --- | Is used inside the 'uniquenessPeriodsVector3'. +-- | Is used inside the 'uniquenessPeriodsVector3'. Both list arguments of non-negative numbers (if not empty) must be sorted in the ascending order. helpUPV3 :: [Int] -> [Int] -> [Int] helpUPV3 (z:zs) (x:y:xs)   | compare ((x - z) * (y - z)) 0 == LT = (y - x):helpUPV3 zs (y:xs)- | otherwise = helpUPV3 zs (x:y:xs)+ | compare y z == GT = helpUPV3 zs (x:y:xs)+ | otherwise = helpUPV3 (z:zs) (y:xs) helpUPV3 _ _ = [] 
uniqueness-periods-vector.cabal view
@@ -2,7 +2,7 @@ -- further documentation, see http://haskell.org/cabal/users-guide/  name:                uniqueness-periods-vector-version:             0.2.0.0+version:             0.3.0.0 synopsis:            Generalization of the uniqueness-periods and uniqueness-periods-general packages functionality. description:         Generalization of the uniqueness-periods and uniqueness-periods-general packages functionality. homepage:            https://hackage.haskell.org/package/uniqueness-periods-vector