remove i128OfDec

This commit is contained in:
Fabian Schmalzried 2024-03-19 17:11:30 +01:00
parent f145f73aa0
commit 4269608ebf
No known key found for this signature in database
GPG key ID: D691D5DA4CEF42E7
7 changed files with 4 additions and 13 deletions

View file

@ -97,12 +97,9 @@ hashI64 = \hasher, n -> addU64 hasher (Num.toU64 n)
hashI128 : a, I128 -> a where a implements Hasher
hashI128 = \hasher, n -> addU128 hasher (Num.toU128 n)
## LOWLEVEL get the i128 representation of a Dec.
i128OfDec : Dec -> I128
## Adds a single [Dec] to a hasher.
hashDec : a, Dec -> a where a implements Hasher
hashDec = \hasher, n -> hashI128 hasher (i128OfDec n)
hashDec = \hasher, n -> hashI128 hasher (Num.withoutDecimalPoint n)
## Adds a container of [Hash]able elements to a [Hasher] by hashing each element.
## The container is iterated using the walk method passed in.