Permalink
Browse files

More clearly document our use of autobox::Core.

  • Loading branch information...
1 parent 480c7c3 commit f9084330e65d463359e6742970fa975105e59967 @schwern schwern committed Sep 27, 2011
Showing with 17 additions and 7 deletions.
  1. +17 −7 lib/perl5i.pm
View
@@ -302,7 +302,9 @@ This is basically a nicer way to say:
=head2 Scalar Autoboxing
-perl5i adds some methods to scalars of its own.
+All of the methods provided by L<autobox::Core> are available from perl5i.
+
+in addition, perl5i adds some methods of its own.
=head3 center
@@ -570,15 +572,17 @@ Reverses a $string.
Unlike Perl's reverse(), this always reverses the string regardless of context.
-=head2 List Autoboxing
+=head2 Array Autoboxing
-All the functions from L<List::Util> and select ones from
-L<List::MoreUtils> are all available as methods on unblessed arrays and array refs.
+The methods provided by L<autobox::Core/Array Methods> are available
+from perl5i.
-first, max, maxstr, min, minstr, minmax, shuffle, reduce, sum, any,
-all, none, true, false, uniq and mesh.
+All the functions from L<List::Util> and select ones from
+L<List::MoreUtils> are all available as methods on unblessed arrays
+and array refs: first, max, maxstr, min, minstr, minmax, shuffle,
+reduce, sum, any, all, none, true, false, uniq and mesh.
-The have all been altered to return array refs where applicable in
+They have all been altered to return array refs where applicable in
order to allow chaining.
@array->grep(sub{ $_->is_number })->sum->say;
@@ -684,6 +688,11 @@ which will determine what characters should be trimmed.
=head2 Hash Autoboxing
+All of the methods provided by L<autobox::Core/Hash Methods> are
+available from perl5i.
+
+In addition...
+
=head3 each
Iterate through each key/value pair in a hash using a callback.
@@ -755,6 +764,7 @@ C<< @array->diff >>.
Returns the key/value pairs that are present simultaneously in all the
hash arguments. Otherwise works as C<< @array->intersect >>.
+
=head2 Code autoboxing
=head3 signature

0 comments on commit f908433

Please sign in to comment.