<divclass="content sourceset-depenent-content"data-active=""data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="windowed.html">T</a><spanclass="token operator">></span><ahref="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html">Flow</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="windowed.html">T</a><spanclass="token operator">></span><spanclass="token punctuation">.</span><ahref="windowed.html"><spanclass="token function">windowed</span></a><spanclass="token punctuation">(</span>window<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html">Flow</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="../../kmath-core/space.kscience.kmath.structures/-buffer/index.html">Buffer</a><spanclass="token operator"><</span><spanclass="token keyword"></span><ahref="windowed.html">T</a><spanclass="token operator">></span><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">Map a flow to a moving window buffer. The window step is one. To get different steps, one could use skip operation.</p></div></div>