We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2af18ad commit 12b2675Copy full SHA for 12b2675
doc/Type/Blob.pod6
@@ -157,4 +157,16 @@ The template string consists of zero or more units that begin with an ASCII
157
letter, and are optionally followed by a quantifier. For details, see
158
L<unpack|/routine/unpack>.
159
160
+=head2 method reverse
161
+
162
+Defined as:
163
164
+ method reverse(Blob:D: --> Blob:D)
165
166
+Returns a Blob with all elements in reversed order.
167
168
+ say Blob.new([1, 2, 3]).reverse; # OUTPUT: «Blob:0x<03 02 01>»
169
+ say blob16.new([2]).reverse; # OUTPUT: «Blob[uint16]:0x<02>»
170
+ say buf32.new([16, 32]).reverse; # OUTPUT: «Buf[uint32]:0x<20 10>»
171
172
=end pod
0 commit comments