Gunnar
5/3/2005 4:40:00 PM
Hi all
I can not make sense of the boolean ranges. The example
(11..20).collect {|i| (i%4==0.. i%3==0)?i:nil} => [nil, 12, nil, nil,
nil, 16, 17, 18, nil, 20].
I can figure out all numbers except the '18', which in my opinion should be
a 'nil' since i%3==0 is true and would cause the state to change from SET
to UNSET. Is the state machine Fig 22.1 correct?
Gunnar