Fix formatting of numbers into blocks
This commit is contained in:
parent
75e102ed7d
commit
ee7639c1c7
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ toHex :: (Integral a, Show a) => a -> T.Text
|
||||||
toHex a = T.pack $ showHex a ""
|
toHex a = T.pack $ showHex a ""
|
||||||
|
|
||||||
chunkedBy :: T.Text -> Int -> T.Text -> T.Text
|
chunkedBy :: T.Text -> Int -> T.Text -> T.Text
|
||||||
chunkedBy sep n = T.intercalate sep . T.chunksOf n
|
chunkedBy sep n = T.reverse . T.intercalate sep . T.chunksOf n . T.reverse
|
||||||
|
|
||||||
chunkyBin :: T.Text -> T.Text
|
chunkyBin :: T.Text -> T.Text
|
||||||
chunkyBin = chunkedBy " " 4
|
chunkyBin = chunkedBy " " 4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue