Skip to content

Commit 12b2675

Browse files
author
Jan-Olof Hendig
committed
Added docs for Blob.reverse
1 parent 2af18ad commit 12b2675

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/Type/Blob.pod6

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,16 @@ The template string consists of zero or more units that begin with an ASCII
157157
letter, and are optionally followed by a quantifier. For details, see
158158
L<unpack|/routine/unpack>.
159159
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+
160172
=end pod

0 commit comments

Comments
 (0)