<divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-core:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><divclass="block"><divclass="block"><spanclass="token annotation">@</span><ahref="../space.kscience.kmath.misc/-unstable-k-math-a-p-i/index.html"><spanclass="token annotation">UnstableKMathAPI</span></a></div></div><spanclass="token keyword"></span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="to-mutable-list.html">T</a><spanclass="token operator">></span><ahref="../space.kscience.kmath.structures/-buffer/index.html">Buffer</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="to-mutable-list.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">.</span><ahref="to-mutable-list.html"><spanclass="token function">toMutableList</span></a><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="to-mutable-list.html">T</a><spanclass="token operator">></span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pclass="paragraph">Returns a new <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html">MutableList</a> filled with all elements of this buffer. <strong>NOTE:</strong> this method uses a protective copy, so it should not be used in performance-critical code.</p></div></div>