Skip to content

Commit 2d7c132

Browse files
committed
Added usage statements for C<lsb>, C<msb>, and C<unival>
1 parent 3bed9cc commit 2d7c132

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

lib/Type/Int.pod

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,16 @@ Returns C<False> if this C<Int> is known not to be a prime.
7171
7272
=head2 routine lsb
7373
74+
Defined as:
75+
7476
multi method lsb(Int:D:)
7577
multi sub lsb(Int:D)
7678
79+
Usage:
80+
81+
lsb INTEGER
82+
INTEGER.lsb
83+
7784
Returns L<Nil|/type/Nil> if the number is 0. Otherwise returns the zero-based
7885
index from the right of the first 1 in the binary representation of the
7986
number.
@@ -86,9 +93,16 @@ number.
8693
8794
=head2 routine msb
8895
96+
Defined as:
97+
8998
multi method msb(Int:D:)
9099
multi sub msb(Int:D)
91100
101+
Usage:
102+
103+
msb INTEGER
104+
INTEGER.msb
105+
92106
Returns L<Nil|/type/Nil> if the number is 0. Otherwise returns the zero-based
93107
index from the left of the first 1 in the binary representation of the
94108
number.
@@ -101,9 +115,16 @@ number.
101115
102116
=head2 routine unival
103117
118+
Defined as:
119+
104120
multi sub unival(Int:D) returns Numeric
105121
multi method unival(Int:D:) returns Numeric
106122
123+
Usage:
124+
125+
unival INTEGER
126+
INTEGER.unival
127+
107128
Returns the number represented by the Unicode codepoint with the given integer
108129
number, or L<NaN> if it does not represent a number.
109130

0 commit comments

Comments
 (0)