List::Intersperse

List::Intersperse Perl module can intersperse / unsort / disperse a list.
Download

List::Intersperse Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Tim Ayers and John Porter
  • Publisher web site:
  • http://search.cpan.org/~tayers/List-Intersperse-1.00/Intersperse.pm

List::Intersperse Tags


List::Intersperse Description

List::Intersperse Perl module can intersperse / unsort / disperse a list. List::Intersperse Perl module can intersperse / unsort / disperse a list.SYNOPSIS use List::Intersperse qw/intersperseq/; @ispersed = intersperseq {substr($_,0,1)} qw/A1 A2 B1 B2 C1 C2/; @ispersed = List::Intersperse::intersperse qw/A A B B B B B B C/;intersperse and intersperseq evenly distribute elements of a list. Elements that are considered equal are spaced as far apart from each other as possible.FUNCTIONSintersperse LISTThis function returns a list of elements interspersed so that equivalent items are evenly distributed throughout the list.intersperseq BLOCK LISTintersperseq works like intersperse but it applies BLOCK to the elements of LIST to determine the equivalance key. Requirements: · Perl


List::Intersperse Related Software