X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FAutobox%2FArray.pm;h=4fabd46d60915b7c2a7374aa41232830f988583c;hb=2197a7c093124739caaae6be7b9ae213daefb598;hp=ab882614fe699ba79906b1d2634e54a6b7d7931c;hpb=3f4dd8b74b711eefe941a391a327389fb05abf7f;p=gitmo%2FMoose-Autobox.git diff --git a/lib/Moose/Autobox/Array.pm b/lib/Moose/Autobox/Array.pm index ab88261..4fabd46 100644 --- a/lib/Moose/Autobox/Array.pm +++ b/lib/Moose/Autobox/Array.pm @@ -117,6 +117,10 @@ sub kv { $array->keys->map(sub { [ $_, $array->[$_] ] }); } +sub flatten { + @{$_[0]} +} + ## Junctions sub all { @@ -190,6 +194,8 @@ This is a role to describe operations on the Array type. =item B +=item B + =back =head2 Indexed implementation @@ -268,7 +274,7 @@ Stevan Little Estevan@iinteractive.comE =head1 COPYRIGHT AND LICENSE -Copyright 2006 by Infinity Interactive, Inc. +Copyright 2006-2008 by Infinity Interactive, Inc. L