diff options
author | Eduardo Julian | 2022-04-06 16:07:22 -0400 |
---|---|---|
committer | Eduardo Julian | 2022-04-06 16:07:22 -0400 |
commit | a0ed5fd377daf5754697636504de8e180abf9ec0 (patch) | |
tree | 8cc47f78ac6557c4ba233e6debd7b836adfb65b1 /stdlib/source/program | |
parent | 0494295b95c5c44ef389f1259e408f9445cfe0a1 (diff) |
More efficient binary parsing.
Diffstat (limited to 'stdlib/source/program')
-rw-r--r-- | stdlib/source/program/aedifex/hash.lux | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/stdlib/source/program/aedifex/hash.lux b/stdlib/source/program/aedifex/hash.lux index 1455fd65f..6b3f973ce 100644 --- a/stdlib/source/program/aedifex/hash.lux +++ b/stdlib/source/program/aedifex/hash.lux @@ -57,13 +57,13 @@ (def: encoded (Format Binary) - (binary.aggregate (function (_ byte representation) - (let [hex (# n.hex encoded byte) - hex (case (text.size hex) - 1 (format "0" hex) - _ hex)] - (format representation hex))) - "")) + (binary.mix (function (_ byte representation) + (let [hex (# n.hex encoded byte) + hex (case (text.size hex) + 1 (format "0" hex) + _ hex)] + (format representation hex))) + "")) (template [<factor> <name>] [(def: <name> |