> Oops, a correction. [..] should mean 'the set of all integers'. _Not_ the > univeral set. So my code snippet should be: > @i = [..]; # @i contains the integers > $s = sum (grep 0<__<=100 @i); > print "The sum of the 1st 100 integers is: $s"; > Oh dear, another correction! I meant, of course: @i = (..); not @i = [..]; It just goes to prove that Sunday morning is a poor time to sit in front of a computer... Time to go outside!
- 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) lists Ariel Scolnicov
- Re: RFC 24 (v1) Semi-finite (lazy) lists Jeremy Howard
- Re: RFC 24 (v1) Semi-finite (lazy) l... Ariel Scolnicov
- Infinite lists (was Re: RFC 24 (... Jeremy Howard
- Re: Infinite lists (was Re: RFC ... Ken Fox
- Re: Infinite lists (was Re: RFC ... Jeremy Howard
- Re: Infinite lists (was Re: RFC ... John Porter
- Re: Infinite lists (was Re: RFC ... Ken Fox