<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-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><spanclass="parameters "><spanclass="parameter ">window<spanclass="token operator">: </span><ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></span></span><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="clearfix"><spanclass="floating-right">(<ahref="https://github.com/SciProgCentre/kmath/tree/master/kmath-coroutines/src/commonMain/kotlin/space/kscience/kmath/streaming/BufferFlow.kt#L85">source</a>)</span></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>