kmath/kmath-coroutines/space.kscience.kmath.chains/index.html

491 lines
60 KiB
HTML

<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>space.kscience.kmath.chains</title>
</head><body><link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../";</script><script type="text/javascript" src="../../scripts/sourceset_dependencies.js" async></script><link href="../../styles/style.css" rel="Stylesheet"><link href="../../styles/logo-styles.css" rel="Stylesheet"><link href="../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../scripts/clipboard.js" async></script><script type="text/javascript" src="../../scripts/navigation-loader.js" async></script><script type="text/javascript" src="../../scripts/platform-content-handler.js" async></script><script type="text/javascript" src="../../scripts/main.js" async></script>
<div id="container">
<div id="leftColumn"><a href="../../index.html">
<div id="logo"></div>
</a>
<div id="paneSearch"></div>
<div id="sideMenu"></div>
</div>
<div id="main">
<script type="text/javascript" src="../../scripts/main.js"></script><div id="leftToggler"><span class="icon-toggler"></span></div>
<div class="main-content" id="content" pageids="kmath-coroutines::space.kscience.kmath.chains////PointingToDeclaration//-777390422">
<div class="navigation-wrapper" id="navigation-wrapper">
<div class="breadcrumbs"><a href="../index.html">kmath-coroutines</a>/<a href="index.html">space.kscience.kmath.chains</a></div>
<div class="pull-right d-flex">
<div class="filter-section" id="filter-section"><button class="platform-tag platform-selector common-like" data-active="" data-filter=":kmath-coroutines:dokkaHtmlPartial/commonMain">common</button><button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":kmath-coroutines:dokkaHtmlPartial/jvmMain">jvm</button></div>
<div id="searchBar"></div>
</div>
</div>
<div class="cover ">
<h1 class="cover"><span>Package space.</span><wbr><span>kscience.</span><wbr><span>kmath.</span><wbr><span>chains</span></h1>
</div>
<div class="tabbedcontent">
<div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Types">Types</button><button class="section-tab" data-togglable="Functions">Functions</button></div>
<div class="tabs-section-body">
<h2 class="">Types</h2>
<div class="table" data-togglable="Types"><a data-name="-1680087718%2FClasslikes%2F-205805890" anchor-label="BlockingBufferChain" id="-1680087718%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-blocking-buffer-chain/index.html">BlockingBufferChain</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1680087718%2FClasslikes%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">interface <a href="-blocking-buffer-chain/index.html">BlockingBufferChain</a>&lt;out <a href="-blocking-buffer-chain/index.html">T</a>&gt; : <a href="-blocking-chain/index.html">BlockingChain</a>&lt;<a href="-blocking-buffer-chain/index.html">T</a>&gt; , <a href="-buffer-chain/index.html">BufferChain</a>&lt;<a href="-blocking-buffer-chain/index.html">T</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<a data-name="-428258182%2FClasslikes%2F-205805890" anchor-label="BlockingChain" id="-428258182%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-blocking-chain/index.html">BlockingChain</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-428258182%2FClasslikes%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">interface <a href="-blocking-chain/index.html">BlockingChain</a>&lt;out <a href="-blocking-chain/index.html">T</a>&gt; : <a href="-chain/index.html">Chain</a>&lt;<a href="-blocking-chain/index.html">T</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="-428258182%2FClasslikes%2F-205805890" anchor-label="BlockingChain" id="-428258182%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="-428258182%2FClasslikes%2F-205805890" anchor-label="BlockingChain" id="-428258182%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>A chain with blocking generator that could be used without suspension</div></div>
</div>
</div>
</div>
</div>
<a data-name="1648556331%2FClasslikes%2F-205805890" anchor-label="BlockingDoubleChain" id="1648556331%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-blocking-double-chain/index.html">BlockingDoubleChain</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1648556331%2FClasslikes%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">interface <a href="-blocking-double-chain/index.html">BlockingDoubleChain</a> : <a href="-blocking-buffer-chain/index.html">BlockingBufferChain</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="1648556331%2FClasslikes%2F-205805890" anchor-label="BlockingDoubleChain" id="1648556331%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="1648556331%2FClasslikes%2F-205805890" anchor-label="BlockingDoubleChain" id="1648556331%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>Chunked, specialized chain for double values, which supports blocking <a href="../../kmath-coroutines/space.kscience.kmath.chains/-blocking-double-chain/next-blocking.html">nextBlocking</a> operation</div></div>
</div>
</div>
</div>
</div>
<a data-name="660348981%2FClasslikes%2F-205805890" anchor-label="BlockingIntChain" id="660348981%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-blocking-int-chain/index.html">BlockingIntChain</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="660348981%2FClasslikes%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">interface <a href="-blocking-int-chain/index.html">BlockingIntChain</a> : <a href="-blocking-buffer-chain/index.html">BlockingBufferChain</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="660348981%2FClasslikes%2F-205805890" anchor-label="BlockingIntChain" id="660348981%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="660348981%2FClasslikes%2F-205805890" anchor-label="BlockingIntChain" id="660348981%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>Performance optimized chain for integer values</div></div>
</div>
</div>
</div>
</div>
<a data-name="1592205445%2FClasslikes%2F-205805890" anchor-label="BufferChain" id="1592205445%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-buffer-chain/index.html">BufferChain</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1592205445%2FClasslikes%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">interface <a href="-buffer-chain/index.html">BufferChain</a>&lt;out <a href="-buffer-chain/index.html">T</a>&gt; : <a href="-chain/index.html">Chain</a>&lt;<a href="-buffer-chain/index.html">T</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<a data-name="883885029%2FClasslikes%2F-205805890" anchor-label="Chain" id="883885029%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-chain/index.html">Chain</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="883885029%2FClasslikes%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">interface <a href="-chain/index.html">Chain</a>&lt;out <a href="-chain/index.html">T</a>&gt; : <a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html">Flow</a>&lt;<a href="-chain/index.html">T</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="883885029%2FClasslikes%2F-205805890" anchor-label="Chain" id="883885029%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="883885029%2FClasslikes%2F-205805890" anchor-label="Chain" id="883885029%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>A not-necessary-Markov chain of some type</div></div>
</div>
</div>
</div>
</div>
<a data-name="-1019062359%2FClasslikes%2F-205805890" anchor-label="ConstantChain" id="-1019062359%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-constant-chain/index.html">ConstantChain</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1019062359%2FClasslikes%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">class <a href="-constant-chain/index.html">ConstantChain</a>&lt;out <a href="-constant-chain/index.html">T</a>&gt;(value: <a href="-constant-chain/index.html">T</a>) : <a href="-chain/index.html">Chain</a>&lt;<a href="-constant-chain/index.html">T</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="-1019062359%2FClasslikes%2F-205805890" anchor-label="ConstantChain" id="-1019062359%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="-1019062359%2FClasslikes%2F-205805890" anchor-label="ConstantChain" id="-1019062359%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>A chain that repeats the same value</div></div>
</div>
</div>
</div>
</div>
<a data-name="1290342073%2FClasslikes%2F-205805890" anchor-label="MarkovChain" id="1290342073%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-markov-chain/index.html">MarkovChain</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1290342073%2FClasslikes%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">class <a href="-markov-chain/index.html">MarkovChain</a>&lt;out <a href="-markov-chain/index.html">R</a> : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt;(seed: suspend () -&gt; <a href="-markov-chain/index.html">R</a>, gen: suspend (<a href="-markov-chain/index.html">R</a>) -&gt; <a href="-markov-chain/index.html">R</a>) : <a href="-chain/index.html">Chain</a>&lt;<a href="-markov-chain/index.html">R</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="1290342073%2FClasslikes%2F-205805890" anchor-label="MarkovChain" id="1290342073%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="1290342073%2FClasslikes%2F-205805890" anchor-label="MarkovChain" id="1290342073%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>A stateless Markov chain</div></div>
</div>
</div>
</div>
</div>
<a data-name="-2068043145%2FClasslikes%2F-205805890" anchor-label="SimpleChain" id="-2068043145%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-simple-chain/index.html">SimpleChain</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2068043145%2FClasslikes%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">class <a href="-simple-chain/index.html">SimpleChain</a>&lt;out <a href="-simple-chain/index.html">R</a>&gt;(gen: suspend () -&gt; <a href="-simple-chain/index.html">R</a>) : <a href="-chain/index.html">Chain</a>&lt;<a href="-simple-chain/index.html">R</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="-2068043145%2FClasslikes%2F-205805890" anchor-label="SimpleChain" id="-2068043145%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="-2068043145%2FClasslikes%2F-205805890" anchor-label="SimpleChain" id="-2068043145%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>A simple chain of independent tokens.</div></div>
</div>
</div>
</div>
</div>
<a data-name="-1396977327%2FClasslikes%2F-205805890" anchor-label="StatefulChain" id="-1396977327%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="-stateful-chain/index.html">StatefulChain</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1396977327%2FClasslikes%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">class <a href="-stateful-chain/index.html">StatefulChain</a>&lt;<a href="-stateful-chain/index.html">S</a>, out <a href="-stateful-chain/index.html">R</a>&gt;(state: <a href="-stateful-chain/index.html">S</a>, seed: <a href="-stateful-chain/index.html">S</a>.() -&gt; <a href="-stateful-chain/index.html">R</a>, forkState: (<a href="-stateful-chain/index.html">S</a>) -&gt; <a href="-stateful-chain/index.html">S</a>, gen: suspend <a href="-stateful-chain/index.html">S</a>.(<a href="-stateful-chain/index.html">R</a>) -&gt; <a href="-stateful-chain/index.html">R</a>) : <a href="-chain/index.html">Chain</a>&lt;<a href="-stateful-chain/index.html">R</a>&gt; <span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="-1396977327%2FClasslikes%2F-205805890" anchor-label="StatefulChain" id="-1396977327%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="-1396977327%2FClasslikes%2F-205805890" anchor-label="StatefulChain" id="-1396977327%2FClasslikes%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>A chain with possibly mutable state.</div></div>
</div>
</div>
</div>
</div>
</div>
<h2 class="">Functions</h2>
<div class="table" data-togglable="Functions"><a data-name="337554518%2FFunctions%2F-205805890" anchor-label="asChain" id="337554518%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="as-chain.html">asChain</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="337554518%2FFunctions%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">fun &lt;<a href="as-chain.html">T</a>&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterator/index.html">Iterator</a>&lt;<a href="as-chain.html">T</a>&gt;.<a href="as-chain.html">asChain</a>(): <a href="-chain/index.html">Chain</a>&lt;<a href="as-chain.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="symbol monospace">fun &lt;<a href="as-chain.html">T</a>&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/-sequence/index.html">Sequence</a>&lt;<a href="as-chain.html">T</a>&gt;.<a href="as-chain.html">asChain</a>(): <a href="-chain/index.html">Chain</a>&lt;<a href="as-chain.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<a data-name="1092613719%2FFunctions%2F1130137208" anchor-label="asSequence" id="1092613719%2FFunctions%2F1130137208" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/jvmMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/jvmMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/jvmMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="as-sequence.html">asSequence</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1092613719%2FFunctions%2F1130137208"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag jvm-like">jvm</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/jvmMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/jvmMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/jvmMain"><div class="symbol monospace">fun &lt;<a href="as-sequence.html">R</a>&gt; <a href="-chain/index.html#883885029%2FExtensions%2F1130137208">Chain</a>&lt;<a href="as-sequence.html">R</a>&gt;.<a href="as-sequence.html">asSequence</a>(): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/-sequence/index.html">Sequence</a>&lt;<a href="as-sequence.html">R</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="1092613719%2FFunctions%2F1130137208" anchor-label="asSequence" id="1092613719%2FFunctions%2F1130137208" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/jvmMain"></a><div class="brief "><a data-name="1092613719%2FFunctions%2F1130137208" anchor-label="asSequence" id="1092613719%2FFunctions%2F1130137208" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/jvmMain"></a>Represent a chain as a sequence</div></div>
</div>
</div>
</div>
</div>
<a data-name="972644398%2FFunctions%2F-205805890" anchor-label="collect" id="972644398%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="collect.html">collect</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="972644398%2FFunctions%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">fun &lt;<a href="collect.html">T</a>, <a href="collect.html">R</a>&gt; <a href="-chain/index.html">Chain</a>&lt;<a href="collect.html">T</a>&gt;.<a href="collect.html">collect</a>(mapper: suspend (<a href="-chain/index.html">Chain</a>&lt;<a href="collect.html">T</a>&gt;) -&gt; <a href="collect.html">R</a>): <a href="-chain/index.html">Chain</a>&lt;<a href="collect.html">R</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="972644398%2FFunctions%2F-205805890" anchor-label="collect" id="972644398%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="972644398%2FFunctions%2F-205805890" anchor-label="collect" id="972644398%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>Map the whole chain</div></div>
</div>
</div>
</div>
</div>
<a data-name="-2139429896%2FFunctions%2F-205805890" anchor-label="collectWithState" id="-2139429896%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="collect-with-state.html">collectWithState</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2139429896%2FFunctions%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">fun &lt;<a href="collect-with-state.html">T</a>, <a href="collect-with-state.html">S</a>, <a href="collect-with-state.html">R</a>&gt; <a href="-chain/index.html">Chain</a>&lt;<a href="collect-with-state.html">T</a>&gt;.<a href="collect-with-state.html">collectWithState</a>(state: <a href="collect-with-state.html">S</a>, stateFork: (<a href="collect-with-state.html">S</a>) -&gt; <a href="collect-with-state.html">S</a>, mapper: suspend <a href="collect-with-state.html">S</a>.(<a href="-chain/index.html">Chain</a>&lt;<a href="collect-with-state.html">T</a>&gt;) -&gt; <a href="collect-with-state.html">R</a>): <a href="-chain/index.html">Chain</a>&lt;<a href="collect-with-state.html">R</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<a data-name="832367516%2FFunctions%2F-205805890" anchor-label="cumulativeSum" id="832367516%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="cumulative-sum.html">cumulativeSum</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="832367516%2FFunctions%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">fun &lt;<a href="cumulative-sum.html">T</a>&gt; <a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html">Flow</a>&lt;<a href="cumulative-sum.html">T</a>&gt;.<a href="cumulative-sum.html">cumulativeSum</a>(group: <a href="../../kmath-core/space.kscience.kmath.operations/-group-ops/index.html">GroupOps</a>&lt;<a href="cumulative-sum.html">T</a>&gt;): <a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html">Flow</a>&lt;<a href="cumulative-sum.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<a data-name="1464188391%2FFunctions%2F-205805890" anchor-label="filter" id="1464188391%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="filter.html">filter</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1464188391%2FFunctions%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">fun &lt;<a href="filter.html">T</a>&gt; <a href="-chain/index.html">Chain</a>&lt;<a href="filter.html">T</a>&gt;.<a href="filter.html">filter</a>(block: (<a href="filter.html">T</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>): <a href="-chain/index.html">Chain</a>&lt;<a href="filter.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="1464188391%2FFunctions%2F-205805890" anchor-label="filter" id="1464188391%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="1464188391%2FFunctions%2F-205805890" anchor-label="filter" id="1464188391%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><a href="filter.html">block</a> must be a pure function or at least not use external random variables, otherwise fork could be broken</div></div>
</div>
</div>
</div>
</div>
<a data-name="-1315873636%2FFunctions%2F1130137208" anchor-label="iterator" id="-1315873636%2FFunctions%2F1130137208" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/jvmMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/jvmMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/jvmMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="iterator.html">iterator</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1315873636%2FFunctions%2F1130137208"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag jvm-like">jvm</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/jvmMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/jvmMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/jvmMain"><div class="symbol monospace">operator fun &lt;<a href="iterator.html">R</a>&gt; <a href="-chain/index.html#883885029%2FExtensions%2F1130137208">Chain</a>&lt;<a href="iterator.html">R</a>&gt;.<a href="iterator.html">iterator</a>(): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterator/index.html">Iterator</a>&lt;<a href="iterator.html">R</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="-1315873636%2FFunctions%2F1130137208" anchor-label="iterator" id="-1315873636%2FFunctions%2F1130137208" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/jvmMain"></a><div class="brief "><a data-name="-1315873636%2FFunctions%2F1130137208" anchor-label="iterator" id="-1315873636%2FFunctions%2F1130137208" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/jvmMain"></a>Represent a chain as regular iterator (uses blocking calls)</div></div>
</div>
</div>
</div>
</div>
<a data-name="1054602073%2FFunctions%2F-205805890" anchor-label="map" id="1054602073%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="map.html">map</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1054602073%2FFunctions%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">fun <a href="-blocking-double-chain/index.html">BlockingDoubleChain</a>.<a href="map.html">map</a>(transform: (<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>) -&gt; <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>): <a href="-blocking-double-chain/index.html">BlockingDoubleChain</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
<div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">fun &lt;<a href="map.html">T</a>, <a href="map.html">R</a>&gt; <a href="-chain/index.html">Chain</a>&lt;<a href="map.html">T</a>&gt;.<a href="map.html">map</a>(func: suspend (<a href="map.html">T</a>) -&gt; <a href="map.html">R</a>): <a href="-chain/index.html">Chain</a>&lt;<a href="map.html">R</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="-804068761%2FFunctions%2F-205805890" anchor-label="map" id="-804068761%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="-804068761%2FFunctions%2F-205805890" anchor-label="map" id="-804068761%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>Map the chain result using suspended transformation.</div></div>
</div>
</div>
</div>
</div>
<a data-name="1700941512%2FFunctions%2F-205805890" anchor-label="mean" id="1700941512%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="mean.html">mean</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1700941512%2FFunctions%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><div class="block"><div class="block">@<a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx-coroutines-core/kotlinx.coroutines/-experimental-coroutines-api/index.html">ExperimentalCoroutinesApi</a>()</div></div>fun &lt;<a href="mean.html">T</a>, <a href="mean.html">S</a> : <a href="../../kmath-core/space.kscience.kmath.operations/-ring/index.html">Ring</a>&lt;<a href="mean.html">T</a>&gt;, <a href="../../kmath-core/space.kscience.kmath.operations/-scale-operations/index.html">ScaleOperations</a>&lt;<a href="mean.html">T</a>&gt;&gt; <a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html">Flow</a>&lt;<a href="mean.html">T</a>&gt;.<a href="mean.html">mean</a>(space: <a href="mean.html">S</a>): <a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html">Flow</a>&lt;<a href="mean.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<a data-name="-700556858%2FFunctions%2F-205805890" anchor-label="nextBuffer" id="-700556858%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="next-buffer.html">nextBuffer</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-700556858%2FFunctions%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">inline suspend fun &lt;<a href="next-buffer.html">T</a> : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="-chain/index.html">Chain</a>&lt;<a href="next-buffer.html">T</a>&gt;.<a href="next-buffer.html">nextBuffer</a>(size: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>): <a href="../../kmath-core/space.kscience.kmath.structures/-buffer/index.html">Buffer</a>&lt;<a href="next-buffer.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<a data-name="-1235743322%2FFunctions%2F-205805890" anchor-label="nextBufferBlocking" id="-1235743322%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="next-buffer-blocking.html">nextBufferBlocking</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1235743322%2FFunctions%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">inline fun &lt;<a href="next-buffer-blocking.html">T</a> : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt; <a href="-blocking-chain/index.html">BlockingChain</a>&lt;<a href="next-buffer-blocking.html">T</a>&gt;.<a href="next-buffer-blocking.html">nextBufferBlocking</a>(size: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>): <a href="../../kmath-core/space.kscience.kmath.structures/-buffer/index.html">Buffer</a>&lt;<a href="next-buffer-blocking.html">T</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<a data-name="489973241%2FFunctions%2F-205805890" anchor-label="zip" id="489973241%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="zip.html">zip</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="489973241%2FFunctions%2F-205805890"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div>
<div class="platform-tags ">
<div class="platform-tag common-like">common</div>
</div>
<div class="title"><div class="divergent-group" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace">fun &lt;<a href="zip.html">T</a>, <a href="zip.html">U</a>, <a href="zip.html">R</a>&gt; <a href="-chain/index.html">Chain</a>&lt;<a href="zip.html">T</a>&gt;.<a href="zip.html">zip</a>(other: <a href="-chain/index.html">Chain</a>&lt;<a href="zip.html">U</a>&gt;, block: suspend (<a href="zip.html">T</a>, <a href="zip.html">U</a>) -&gt; <a href="zip.html">R</a>): <a href="-chain/index.html">Chain</a>&lt;<a href="zip.html">R</a>&gt;<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
</div>
<a data-name="489973241%2FFunctions%2F-205805890" anchor-label="zip" id="489973241%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="brief "><a data-name="489973241%2FFunctions%2F-205805890" anchor-label="zip" id="489973241%2FFunctions%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>Zip two chains together using given transformation</div></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
</div>
</div>
</body></html>