This patch was authored and released by @gwynne.
- Might as well let Sequences have them as well as Collections
- Make
hexEncodedBytes()
public, why wouldn't it be? - Specialize
hexEncodedBytes()
onCollection
to use a (theoretically) more efficient method. It's probably a completely unmeasurable difference in practice. - Add unit test to make sure it works on
Sequence
s properly. (Sure, it crashes if you try something likesequence(0) { $0 + 1 }.hex
, but that's to be expected. Maybe at some point a length limit check can be added.)