docs/versions/6.5.0/rules/lib/depset.mdx
<h2 id="to_list">to_list</h2>
<p><pre class="rule-signature"><a class="anchor" href="list.html">list</a> depset.to_list()</pre></p>
Returns a list of the elements, without duplicates, in the depset's traversal order. Note that order is unspecified (but deterministic) for elements that were added more than once to the depset. Order is also unspecified for <code>"default"</code>-ordered depsets, and for elements of child depsets whose order differs from that of the parent depset. The list is a copy; modifying it has no effect on the depset and vice versa.