An example is given by the _create and _delete methods in WorkItemLinks.
The indexing in the code (items[0]) causes the need for subscribtability such that items needs to be a list. This therefore forces the user to convert any iterable to a list before using the methods. We can spare this type-conversion and improve the efficiency.
An example is given by the
_createand_deletemethods inWorkItemLinks.The indexing in the code (
items[0]) causes the need for subscribtability such that items needs to be a list. This therefore forces the user to convert any iterable to a list before using the methods. We can spare this type-conversion and improve the efficiency.