<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":kmath-core:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><divclass="block"><divclass="block"><spanclass="token annotation builtin">@</span><ahref="../../kmath-memory/space.kscience.kmath/-unstable-k-math-a-p-i/index.html"><spanclass="token annotation builtin">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="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-core/src/commonMain/kotlin/space/kscience/kmath/structures/bufferExtensions.kt#L51">source</a>)</span></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>