merkle reverse
SimonN
eiderdaus at gmail.com
Thu Apr 5 09:24:31 UTC 2018
On Thursday, 5 April 2018 at 09:07:52 UTC, Seb wrote:
> FYI: The problem isn't chunks, but that strings aren't
> bi-directional ranges (hello ugly auto-decoding!).
> "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b".byCodeUnit
Thanks! Very appropriate because it's all hex digits anyway.
Instead of std.experimental.all, one can also import std.utf.
Initially, I wondered whether autodecoding was the issue here,
but I dismissed it because the OP's example calls retro
immediately on a string, which is supposedly not autodecodable as
bi-directional. But I should examine retro's implementation
because I remember several Phobos functions having special cases
for strings (which is exactly the issue of auto-decoding).
-- Simon
More information about the Digitalmars-d-learn
mailing list