Skip to content

Commit 709d140

Browse files
committed
add so basic Mu docs
1 parent edd0140 commit 709d140

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

lib/Mu.pod

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
=begin pod
2+
3+
=head1 Mu
4+
5+
class Mu { ... }
6+
7+
The root of the Perl 6 type hierarchy. For the origin of the name, see
8+
L<http://en.wikipedia.org/wiki/Mu_%28negative%29>. One can also says that
9+
there are many undefined values in Perl 6, and C<Mu> is the I<most undefined>
10+
value.
11+
12+
Note that most class do not derive from C<Mu> directly, but rather from
13+
L<Any>.
14+
15+
=head2 Methods
16+
17+
=head3 defined
18+
19+
multi sub defined(Mu) returns Bool:D
20+
multi method defined() returns Bool:D
21+
22+
Returns C<False> on the type object, and C<True> otherwise
23+
24+
=head3 Bool
25+
26+
multi sub Bool(Mu) returns Bool:D
27+
multi method Bool() returns Bool:D
28+
29+
Returns C<False> on the type object, and C<True> otherwise
30+
31+
=head3 clone
32+
33+
method clone(*%twiddles)
34+
35+
Creates a shallow clone of the invocant. If named arguments are passed
36+
to it, their values are used in every place where an attribute name matches
37+
the name of a named argument.
38+
39+
=end pod

0 commit comments

Comments
 (0)