> This RFC proposes that the right operand of a C<..> operator
> may be omitted in a list context, producing a lazily evaluated
> semi-finite list. It is further proposed that operations on
> such lists also be carried out lazily.
>
OK, I've already requested that we allow omitting the left operand
_rather_than_ the right, and Damian's promised to pass that one on to Larry
to veto...
Now I'd like to propose that we also allow omitting _both_operands_! That's
not so wierd, it just means:
@u = [..]; # @a contains the univeral set
works just fine, so I can then say:
@i = grep {$_=abs($_)} @u; # @i contains the integers
# See higher-order function and multi-way comparison RFCs
$s = sum (grep 0<__<=100 @i);
print "The sum of the 1st 100 integers is: $s";
I think new programmers would expect this to 'just work', if they can use
the right operand only.
- RFC 24 (v1) Semi-finite (lazy) lists Perl6 RFC Librarian
- Re: RFC 24 (v1) Semi-finite (lazy) lists Ariel Scolnicov
- Re: RFC 24 (v1) Semi-finite (lazy) lists Chaim Frenkel
- Re: RFC 24 (v1) Semi-finite (lazy) lists Damian Conway
- Re: RFC 24 (v1) Semi-finite (lazy) lists Ted Ashton
- Re: RFC 24 (v1) Semi-finite (lazy) lists Jeremy Howard
- Re: RFC 24 (v1) Semi-finite (lazy) lists Damian Conway
- Re: RFC 24 (v1) Semi-finite (lazy) lists Jeremy Howard
- Re: RFC 24 (v1) Semi-finite (lazy) lists Jeremy Howard
- Re: RFC 24 (v1) Semi-finite (lazy) lists Mike Pastore
- Re: RFC 24 (v1) Semi-finite (lazy) lists Jeremy Howard
- Re: RFC 24 (v1) Semi-finite (lazy) lists Jeremy Howard
- Re: RFC 24 (v1) Semi-finite (lazy) lists Ariel Scolnicov
- Re: RFC 24 (v1) Semi-finite (lazy) lists Jeremy Howard
- Re: RFC 24 (v1) Semi-finite (lazy) li... Ariel Scolnicov
- Re: RFC 24 (v1) Semi-finite (laz... Jeremy Howard
- Re: RFC 24 (v1) Semi-finite ... Ariel Scolnicov
- Infinite lists (was Re: ... Jeremy Howard
