splat operator Question.

P

Pedro Del Gallego

Hi there. What's the functional difference between

pet1, pet2, pet3 =3D *["duck", "dog", "cat"]

and

pet1, pet2, pet3 =3D ["horse", "cow", "goat"]

I get the same results=96namely, each pet gets one value from the array.

This is a user comment in one post [1] in my blog

[1] :

--=20
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top