2005-08-10 * New methods Array.flatten(), is_lazy() - Lazy Array changes to normal Array if all elements are known; - pushing a lazy list into a normal array turns the array into a lazy array * New method: Array.is_infinite() * Renamed methods: Array.new() -> Array.from_list(); Array.splat() -> Array.to_list * New List methods: is_contiguous(), to_str(), clone(), to_ref(), to_bit(), to_num() * New List hooks: is_contiguous( $code ), stringify( $code ) * Started syncing with Perl5 version * Removed class Lazy::Range * Lowercase methods fetch(), store() * Removed redundant methods next(), previous()
2005-08-09 * Renamed Lazy::List to Perl6::Value::List * Renamed Array::Lazy to Perl6::Container::Array * Removed fetch_slice() because it is non-standard.
2005-08-08 * New lazy array methods: FETCH(), STORE(), fetch_slice(). slice accepts a lazy list or lazy array as argument! * elems() actually works * more or less fixed Lazy::List::reverse() inheritance * Lazy::CoroList is gone * Lazy list methods (grep, map, ...) moved from Array::Lazy to Lazy::List. These methods can be accessed from an array by doing a 'splat()' first. Array::Lazy::reverse() is still supported.
2005-08-07 * Lazy Range supports 'a'..Inf * New lazy array methods: splat(), elems(), uniq(), end(), next(), previous(), kv(), keys(), values(), zip() * Code rewritten to use coroutines instead of states * New class Lazy::CoroList - takes a coroutine (or two, for shift and pop support) and creates a Lazy List, that can be used to create a Lazy Array. * Removed internal class Lazy::Generator
2005-08-06 * new lazy methods reverse(), grep(), map() * Array::Lazy supports multi-dimensional Lazy Array * new class 'Lazy::List' * lazy List / Array of junctions is tested * removed 'Iter' class; renamed 'Iter::Range' to 'Lazy::Range'
= NAME
Perl6::Container::Array - A Lazy Array
= SYNOPSIS
...
= DESCRIPTION
Example:
1,2,3,-10..20,50,$obj,$span,1..Inf,10
= CONSTRUCTORS
- `from_list( @list )`
@list may contain "Lazy" lists.
= METHODS
- `splice( ... )`
- `push( @list )`
- `pop`
- `unshift( @list )`
- `shift`
- `reverse`
- `to_list`
Implements the "splat" operation (*@x). Returns a lazy list containing the lazy array elements.
# insert a reference to array2 into array1 $lazy_array.push( $lazy_array_2 ); # insert each of the array2 elements into array1 $lazy_array.push( $lazy_array_2.list );
- `fetch` / `store`
= AUTHOR
Flavio S. Glock, <fglock@gmail.com>
= COPYRIGHT
Copyright (c) 2005, Flavio S. Glock. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Unknown directive: =kwid
To install Perl6::Pugs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl6::Pugs
CPAN shell
perl -MCPAN -e shell install Perl6::Pugs
For more information on module installation, please visit the detailed CPAN module installation guide.