Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'master' of github.com:perl6/doc
  • Loading branch information
Paul Cochrane committed Jan 25, 2015
2 parents 13001a6 + 0afbbe8 commit 0b382b6
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion lib/Type/Any.pod
Expand Up @@ -6,10 +6,14 @@
class Any is Mu { ... }
While C<Mu> is the root of the Perl 6 class hierarchy, C<Any> is the class
While L<Mu|/type/Mu> is the root of the Perl 6 class hierarchy, C<Any> is the class
that serves as a default base class for new classes, and as the base class for
most built-in classes.
Since Perl 6 intentionally confuses items and single-element lists, most
methods in C<Any> are also present on class L<List|/type/List>, and coerce to
List or a list-like type.
=head1 Methods
=head2 method ACCEPTS
Expand All @@ -34,4 +38,26 @@ Interprets the invocant as a list and creates an C<one>-Junction from it.
Interprets the invocant as a list and creates an C<none>-Junction from it.
=head2 method list
Interprets the invocant as a list, and returns that list.
=head2 method flat
Interprets the invocant as a list, flattens it, and returns that list.
=head2 method eager
Interprets the invocant as a list, evaluates it eagerly, and returns that
list.
=head2 method elems
Interprets the invocant as a list, and returns the number of elements in the
list.
=head2 method end
Interprets the invocant as a list, and returns the last index of that list.
=end pod

0 comments on commit 0b382b6

Please sign in to comment.