5
User
Recs.
Recs.
1
Updates
Last
Updated
Updated
Activity
Some built in collection types, such as tuples, lists, and dictionaries, can be automatically unpacked into arguments of function call using the * or ** operators.
pointA = (1,2)
draw(*pointA)
pointB = {'x':1, 'y':2}
draw(**pointB)
Specs
Pros
Know any positive aspects of this option?
Cons
Know any negative aspects of this option?
Recommendations
Argument Unpacking/Splats
Recommended 8 years ago
Michael hasn’t added their experience, pros or cons to their recommendation.
Argument Unpacking/Splats
Recommended 11 years ago
Bryan hasn’t added their experience, pros or cons to their recommendation.
Argument Unpacking/Splats
Recommended 11 years ago
Michael hasn’t added their experience, pros or cons to their recommendation.
Argument Unpacking/Splats
Recommended 11 years ago
Kyle hasn’t added their experience, pros or cons to their recommendation.
Argument Unpacking/Splats
Recommended 11 years ago
T-R hasn’t added their experience, pros or cons to their recommendation.