On Jun 7, 11:35 pm, Rimantas Liubertas <riman... / gmail.com> wrote:
> > But you can't do this:
>
> > n1, n2, n3, n4 = [something]
>
> Just add one simbol and you can:
>
> $ irb --simple-prompt>> n1, n2, n3, n4 = *[1, 2, 3, 4]
> => [1, 2, 3, 4]
> >> n1
> => 1
> >> n2
> => 2
> >> n3
> => 3
> >> n4
>
> => 4
>
> > And you can't do this:
>
> > n1, n2, n3, n4  [+,-,*, etc]= [something]
>
> Not sure what you want here.
>
> <...> Make the software work more for the user, and not the other
>
> > way around.
>
> Make sure you know the software.
>
> Regards,
> Rimantas
> --http://rimantas.com/

Sorry for the confusion.

I want to set multiple variable to the same value:

n1, n2, n3, n4 = 5

and  do +=, -=, *=, etc with the same value

n1, n2, n3, n4 += 5

instead of

n1 += 9; n2 += 9; n3 += 9; n4 += 9

It would soooo much more expressive, and concise.