Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dogbert17/29095e6418272518295b47c5aa9de53a to your computer and use it in GitHub Desktop.
Save dogbert17/29095e6418272518295b47c5aa9de53a to your computer and use it in GitHub Desktop.
Attempt to document Blob.reverse
=head2 method reverse
Defined as:
method reverse(Blob:D: --> Blob:D)
Returns a Blob with all elements in reversed order.
say Blob.new([1, 2, 3]).reverse; # OUTPUT: «Blob:0x<03 02 01>␤»
say blob16.new([2]).reverse; # OUTPUT: «Blob[uint16]:0x<02>␤»
say blob64.new([16, 32]).reverse; # OUTPUT: «Blob[uint64]:0x<20 10>␤»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment