On 2006-10-20 09:59:58 +0200, Josselin <josselin / wanadoo.fr> said:

> ldom =  30  # variable (last day of a month...)
> 
> # array init to 0
>   @obk = []
>   1.step(ldom, 1) do |i|
>     @obk[i] = 0
>   end
> 
> I am filling an array as follows  (part of a larger filling scheme) :
> ----
> #fiiling the array upon another array content
> # but I'd like to AVOID filling the first and last position in this loop....
>     obdays.each do |bd|
>         @obk[bd] = 1
>     end
> ------
> # ajusting first and last position (in the larger scheme)
>     @obk[obdays.first] += -1
>     @obk[obdays.last] += -2

thanks to all of you, i'll try all your clues...
Ruby is incredible... you can writing as in any C, C++, java multi 
lines routine.. then shrink it to a minimal line...  that's why newbie 
ask for well-trained support at first then may require guru help !!