2021-03-12 21:24:01 +03:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
|
|
|
|
<title>ConstantChain</title>
|
2022-04-12 11:30:54 +03:00
|
|
|
</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/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><link href="../../../styles/prism.css" rel="Stylesheet"><link href="../../../styles/logo-styles.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" defer></script><script type="text/javascript" src="../../../scripts/prism.js" async></script><script>const storage = localStorage.getItem("dokka-dark-mode")
|
|
|
|
const savedDarkMode = storage ? JSON.parse(storage) : false
|
|
|
|
if(savedDarkMode === true){
|
|
|
|
document.getElementsByTagName("html")[0].classList.add("theme-dark")
|
|
|
|
}</script>
|
|
|
|
|
2021-05-08 18:18:11 +03:00
|
|
|
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class="navigation-wrapper" id="navigation-wrapper">
|
|
|
|
<div id="leftToggler"><span class="icon-toggler"></span></div>
|
|
|
|
<div class="library-name"><a href="../../../index.html"><span>kmath</span></a></div>
|
|
|
|
<div></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></div>
|
|
|
|
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
|
|
|
|
<div id="searchBar"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-12 21:24:01 +03:00
|
|
|
<div id="container">
|
2022-04-12 11:30:54 +03:00
|
|
|
<div id="leftColumn">
|
2021-03-12 21:24:01 +03:00
|
|
|
<div id="sideMenu"></div>
|
|
|
|
</div>
|
|
|
|
<div id="main">
|
2021-05-08 18:18:11 +03:00
|
|
|
<div class="main-content" id="content" pageids="kmath-coroutines::space.kscience.kmath.chains/ConstantChain///PointingToDeclaration//-205805890">
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class="breadcrumbs"><a href="../../index.html">kmath-coroutines</a>/<a href="../index.html">space.kscience.kmath.chains</a>/<a href="index.html">ConstantChain</a></div>
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="cover ">
|
2022-04-12 11:30:54 +03:00
|
|
|
<h1 class="cover"><span>Constant</span><wbr><span><span>Chain</span></span></h1>
|
|
|
|
<div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted">
|
|
|
|
<div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-active="" data-toggle=":kmath-coroutines:dokkaHtmlPartial/commonMain">common</button></div>
|
|
|
|
<div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">class </span><a href="index.html">ConstantChain</a><span class="token operator"><</span><span class="token keyword">out </span><a href="index.html">T</a><span class="token operator">></span><span class="token punctuation">(</span>value<span class="token operator">: </span><a href="index.html">T</a><span class="token punctuation">)</span> : <a href="../-chain/index.html">Chain</a><span class="token operator"><</span><span class="token keyword"></span><a href="index.html">T</a><span class="token operator">> </span><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><p class="paragraph">A chain that repeats the same value</p></div> </div>
|
2021-03-12 21:24:01 +03:00
|
|
|
</div>
|
|
|
|
<div class="tabbedcontent">
|
2021-10-13 15:08:46 +03:00
|
|
|
<div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Constructors">Constructors</button><button class="section-tab" data-togglable="Functions">Functions</button><button class="section-tab" data-togglable="Properties">Properties</button><button class="section-tab" data-togglable="Sources">Sources</button></div>
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="tabs-section-body">
|
|
|
|
<h2 class="tabbedcontent">Constructors</h2>
|
2021-05-08 18:18:11 +03:00
|
|
|
<div class="table" data-togglable="Constructors"><a data-name="-1717100617%2FConstructors%2F-205805890" anchor-label="ConstantChain" id="-1717100617%2FConstructors%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">
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="main-subrow keyValue TabbedContent">
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class=""><span class="inline-flex">
|
|
|
|
<div><a href="-constant-chain.html"><span>Constant</span><wbr><span><span>Chain</span></span></a></div>
|
|
|
|
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1717100617%2FConstructors%2F-205805890"></span>
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
|
|
</span></span></div>
|
|
|
|
<div>
|
|
|
|
<div class="title">
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted">
|
|
|
|
<div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-active="" data-toggle=":kmath-coroutines:dokkaHtmlPartial/commonMain">common</button></div>
|
|
|
|
<div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><span class="token operator"><</span><span class="token keyword">out </span><a href="index.html">T</a><span class="token operator">> </span><a href="-constant-chain.html"><span class="token function">ConstantChain</span></a><span class="token punctuation">(</span>value<span class="token operator">: </span><a href="index.html">T</a><span class="token punctuation">)</span><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>
|
2021-03-12 21:24:01 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h2 class="">Functions</h2>
|
2021-05-08 18:18:11 +03:00
|
|
|
<div class="table" data-togglable="Functions"><a data-name="-2048743107%2FFunctions%2F-205805890" anchor-label="collect" id="-2048743107%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">
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="main-subrow keyValue ">
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class=""><span class="inline-flex">
|
|
|
|
<div><a href="../-chain/collect.html"><span><span>collect</span></span></a></div>
|
|
|
|
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2048743107%2FFunctions%2F-205805890"></span>
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
|
|
</span></span></div>
|
|
|
|
<div>
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class="title">
|
|
|
|
<div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted">
|
|
|
|
<div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-active="" data-toggle=":kmath-coroutines:dokkaHtmlPartial/commonMain">common</button></div>
|
|
|
|
<div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">suspend override </span><span class="token keyword">fun </span><a href="../-chain/collect.html"><span class="token function">collect</span></a><span class="token punctuation">(</span>collector<span class="token operator">: </span><a href="https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow-collector/index.html">FlowCollector</a><span class="token operator"><</span><span class="token keyword"></span><a href="index.html">T</a><span class="token operator">></span><span class="token punctuation">)</span><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>
|
2021-03-12 21:24:01 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-08 18:18:11 +03:00
|
|
|
<a data-name="-1254637324%2FFunctions%2F-205805890" anchor-label="fork" id="-1254637324%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">
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="main-subrow keyValue ">
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class=""><span class="inline-flex">
|
|
|
|
<div><a href="fork.html"><span><span>fork</span></span></a></div>
|
|
|
|
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1254637324%2FFunctions%2F-205805890"></span>
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
|
|
</span></span></div>
|
|
|
|
<div>
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class="title">
|
|
|
|
<div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted">
|
|
|
|
<div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-active="" data-toggle=":kmath-coroutines:dokkaHtmlPartial/commonMain">common</button></div>
|
|
|
|
<div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">suspend override </span><span class="token keyword">fun </span><a href="fork.html"><span class="token function">fork</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../-chain/index.html">Chain</a><span class="token operator"><</span><span class="token keyword"></span><a href="index.html">T</a><span class="token operator">></span><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="brief "><p class="paragraph">Create a copy of current chain state. Consuming resulting chain does not affect initial chain.</p></div></div> </div>
|
2021-03-12 21:24:01 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-08 18:18:11 +03:00
|
|
|
<a data-name="1502179%2FFunctions%2F-205805890" anchor-label="next" id="1502179%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">
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="main-subrow keyValue ">
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class=""><span class="inline-flex">
|
|
|
|
<div><a href="next.html"><span><span>next</span></span></a></div>
|
|
|
|
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1502179%2FFunctions%2F-205805890"></span>
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
|
|
</span></span></div>
|
|
|
|
<div>
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class="title">
|
|
|
|
<div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted">
|
|
|
|
<div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-active="" data-toggle=":kmath-coroutines:dokkaHtmlPartial/commonMain">common</button></div>
|
|
|
|
<div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">suspend override </span><span class="token keyword">fun </span><a href="next.html"><span class="token function">next</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="index.html">T</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 class="brief "><p class="paragraph">Generate next value, changing state if needed</p></div></div> </div>
|
2021-03-12 21:24:01 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h2 class="">Properties</h2>
|
2021-05-08 18:18:11 +03:00
|
|
|
<div class="table" data-togglable="Properties"><a data-name="-1779847469%2FProperties%2F-205805890" anchor-label="value" id="-1779847469%2FProperties%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">
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="main-subrow keyValue ">
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class=""><span class="inline-flex">
|
|
|
|
<div><a href="value.html">value</a></div>
|
|
|
|
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1779847469%2FProperties%2F-205805890"></span>
|
2021-03-12 21:24:01 +03:00
|
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
|
|
</span></span></div>
|
|
|
|
<div>
|
|
|
|
<div class="title">
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class="platform-hinted with-platform-tabs" data-platform-hinted="data-platform-hinted" data-togglable="Properties">
|
|
|
|
<div class="platform-bookmarks-row" data-toggle-list="data-toggle-list"><button class="platform-bookmark common-like" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-active="" data-toggle=":kmath-coroutines:dokkaHtmlPartial/commonMain">common</button></div>
|
|
|
|
<div class="content sourceset-depenent-content" data-active="" data-togglable=":kmath-coroutines:dokkaHtmlPartial/commonMain"><a data-name="-1779847469%2FProperties%2F-205805890" anchor-label="value" id="-1779847469%2FProperties%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">val </span><a href="value.html">value</a><span class="token operator">: </span><a href="index.html">T</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>
|
2021-03-12 21:24:01 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-13 15:08:46 +03:00
|
|
|
<h2 class="">Sources</h2>
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class="table" data-togglable="Sources"><a data-name="-1019062359%2FSource%2F-205805890" anchor-label="https://github.com/mipt-npm/kmath/tree/master/kmath-coroutines/src/commonMain/kotlin/space/kscience/kmath/chains/Chain.kt#L92" id="-1019062359%2FSource%2F-205805890" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain"></a>
|
2021-10-13 15:08:46 +03:00
|
|
|
<div class="table-row" data-filterable-current=":kmath-coroutines:dokkaHtmlPartial/commonMain" data-filterable-set=":kmath-coroutines:dokkaHtmlPartial/commonMain">
|
|
|
|
<div class="main-subrow keyValue ">
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class=""><span class="inline-flex">
|
|
|
|
<div><a href="https://github.com/mipt-npm/kmath/tree/master/kmath-coroutines/src/commonMain/kotlin/space/kscience/kmath/chains/Chain.kt#L92">common source</a></div>
|
|
|
|
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1019062359%2FSource%2F-205805890"></span>
|
2021-10-13 15:08:46 +03:00
|
|
|
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
|
|
|
|
</span></span></div>
|
|
|
|
<div></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-12 21:24:01 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-12 11:30:54 +03:00
|
|
|
<div class="footer"><span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2022 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>
|
2021-03-12 21:24:01 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-08 18:18:11 +03:00
|
|
|
|
|
|
|
</body></html>
|
|
|
|
|
2021-03-12 21:24:01 +03:00
|
|
|
|