Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Feb 11, 2024
1 parent ead0236 commit 3e5729e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Data/Chimera/ContinuousMapping.hs
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,15 @@ toZCurve3 x y z = part1by2 z `shiftL` 2 .|. part1by2 y `shiftL` 1 .|. part1by2 x
fromZCurve3 :: Word -> (ThirdWord, ThirdWord, ThirdWord)
fromZCurve3 z = (compact1by2 z, compact1by2 (z `shiftR` 1), compact1by2 (z `shiftR` 2))

-- | Convert a function of two 'HalfWord's to a function of one 'Word'.
-- | Convert a function of two 'ThirdWord's to a function of one 'Word'.
contramapFromZCurve3
:: (ThirdWord -> ThirdWord -> ThirdWord -> a)
-> (Word -> a)
contramapFromZCurve3 f = uncurry3 f . fromZCurve3
where
uncurry3 func (a, b, c) = func a b c

-- | Convert a function of one 'Word' to a function of two 'HalfWord's.
-- | Convert a function of one 'Word' to a function of two 'ThirdWord's.
contramapToZCurve3
:: (Word -> a)
-> (ThirdWord -> ThirdWord -> ThirdWord -> a)
Expand Down

0 comments on commit 3e5729e

Please sign in to comment.