import{_ as l,o as p,c as o,k as s,a,X as n}from"./chunks/framework.6e839c56.js";const k=JSON.parse('{"title":"Tuple","description":"","frontmatter":{},"headers":[],"relativePath":"en/api/packages/tuple.md","filePath":"en/api/packages/tuple.md"}'),e={name:"en/api/packages/tuple.md"},t=s("h1",{id:"Tuple",tabindex:"-1"},[a("Tuple "),s("a",{class:"header-anchor",href:"#Tuple","aria-label":'Permalink to "Tuple"'},"​")],-1),c=s("p",null,"tuple package implements tuple data type and some operations on it.",-1),r=s("div",{STYLE:"page-break-after: always;"},null,-1),y=s("h2",{id:"Source-",tabindex:"-1"},[a("Source: "),s("a",{class:"header-anchor",href:"#Source-","aria-label":'Permalink to "Source:"'},"​")],-1),F=s("ul",null,[s("li",null,[s("a",{href:"https://github.com/duke-git/lancet/blob/main/tuple/tuple.go",target:"_blank",rel:"noreferrer"},"https://github.com/duke-git/lancet/blob/main/tuple/tuple.go")])],-1),i=s("div",{STYLE:"page-break-after: always;"},null,-1),E=n(`<h2 id="Usage-" tabindex="-1">Usage: <a class="header-anchor" href="#Usage-" aria-label="Permalink to &quot;Usage:&quot;">​</a></h2><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/pointer</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/pointer</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span></code></pre></div>`,2),A=s("div",{STYLE:"page-break-after: always;"},null,-1),u=n('<h2 id="Index" tabindex="-1">Index <a class="header-anchor" href="#Index" aria-label="Permalink to &quot;Index&quot;">​</a></h2><ul><li><a href="#Tuple2">Tuple2</a></li><li><a href="#Tuple2_Unbox">Tuple2_Unbox</a></li><li><a href="#Zip2">Zip2</a></li><li><a href="#Unzip2">Unzip2</a></li><li><a href="#Tuple3">Tuple3</a></li><li><a href="#Tuple3_Unbox">Tuple3_Unbox</a></li><li><a href="#Zip3">Zip3</a></li><li><a href="#Unzip3">Unzip3</a></li><li><a href="#Tuple4">Tuple4</a></li><li><a href="#Tuple4_Unbox">Tuple4_Unbox</a></li><li><a href="#Zip4">Zip4</a></li><li><a href="#Unzip4">Unzip4</a></li><li><a href="#Tuple5">Tuple5</a></li><li><a href="#Tuple5_Unbox">Tuple5_Unbox</a></li><li><a href="#Zip5">Zip5</a></li><li><a href="#Unzip5">Unzip5</a></li><li><a href="#Tuple6">Tuple6</a></li><li><a href="#Tuple6_Unbox">Tuple6_Unbox</a></li><li><a href="#Zip6">Zip6</a></li><li><a href="#Unzip6">Unzip6</a></li><li><a href="#Tuple7">Tuple7</a></li><li><a href="#Tuple7_Unbox">Tuple7_Unbox</a></li><li><a href="#Zip7">Zip7</a></li><li><a href="#Unzip7">Unzip7</a></li><li><a href="#TTuple8uple6">Tuple8</a></li><li><a href="#Tuple8_Unbox">Tuple8_Unbox</a></li><li><a href="#Zip8">Zip8</a></li><li><a href="#Unzip8">Unzip8</a></li><li><a href="#Tuple9">Tuple9</a></li><li><a href="#Tuple9_Unbox">Tuple9_Unbox</a></li><li><a href="#Zip9">Zip9</a></li><li><a href="#Unzip9">Unzip9</a></li><li><a href="#Tuple10">Tuple10</a></li><li><a href="#Tuple10_Unbox">Tuple10_Unbox</a></li><li><a href="#Zip10">Zip10</a></li><li><a href="#Unzip10">Unzip10</a></li></ul>',2),B=s("div",{STYLE:"page-break-after: always;"},null,-1),d=n(`<h2 id="Documentation" tabindex="-1">Documentation <a class="header-anchor" href="#Documentation" aria-label="Permalink to &quot;Documentation&quot;">​</a></h2><h3 id="Tuple2" tabindex="-1"><span id="Tuple2">Tuple2</span> <a class="header-anchor" href="#Tuple2" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple2&quot;&gt;Tuple2&lt;/span&gt;&quot;">​</a></h3><p>Tuple2 represents a 2 elemnets tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">type</span><span style="color:#F6F6F4;"> </span><span style="color:#97E1F1;font-style:italic;">Tuple2</span><span style="color:#F6F6F4;">[A any, B any] </span><span style="color:#F286C4;">struct</span><span style="color:#F6F6F4;"> {</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldA A</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldB B</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> NewTuple2[A any, B any](a A, b B) Tuple2[A, B]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">type</span><span style="color:#393A34;"> </span><span style="color:#2E8F82;">Tuple2</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">]</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">struct</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    FieldA A</span></span>
<span class="line"><span style="color:#393A34;">    FieldB B</span></span>
<span class="line"><span style="color:#999999;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> NewTuple2</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b B</span><span style="color:#999999;">)</span><span style="color:#393A34;"> Tuple2</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/3sHVqBQpLYN" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple2</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, t.FieldA, t.FieldB)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple2</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldB</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple2-Unbox" tabindex="-1"><span id="Tuple2_Unbox">Tuple2_Unbox</span> <a class="header-anchor" href="#Tuple2-Unbox" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple2_Unbox&quot;&gt;Tuple2_Unbox&lt;/span&gt;&quot;">​</a></h3><p>Tuple2 Unbox returns values in tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> (t Tuple2[A, B]) </span><span style="color:#62E884;">Unbox</span><span style="color:#F6F6F4;">() (A, B)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">t Tuple2</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#59873A;">Unbox</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/0fD1qfCVwjm" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple2</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> t.</span><span style="color:#97E1F1;">Unbox</span><span style="color:#F6F6F4;">()</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple2</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#998418;">Unbox</span><span style="color:#999999;">()</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Zip2" tabindex="-1"><span id="Zip2">Zip2</span> <a class="header-anchor" href="#Zip2" aria-label="Permalink to &quot;&lt;span id=&quot;Zip2&quot;&gt;Zip2&lt;/span&gt;&quot;">​</a></h3><p>Create a slice of Tuple2, whose elements are correspond to the given slice elements.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Zip2[A any, B any](a []A, b []B) []Tuple2[A, B]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Zip2</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a </span><span style="color:#999999;">[]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">)</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple2</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/4ncWJJ77Xio" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    result </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Zip2</span><span style="color:#F6F6F4;">([]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Println</span><span style="color:#F6F6F4;">(result)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [{1 0.1}]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">result</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Zip2</span><span style="color:#999999;">([]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float64</span><span style="color:#999999;">{</span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Println</span><span style="color:#999999;">(</span><span style="color:#393A34;">result</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [{1 0.1}]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Unzip2" tabindex="-1"><span id="Unzip2">Unzip2</span> <a class="header-anchor" href="#Unzip2" aria-label="Permalink to &quot;&lt;span id=&quot;Unzip2&quot;&gt;Unzip2&lt;/span&gt;&quot;">​</a></h3><p>Create a group of slice from a slice of Tuple2.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Unzip2[A any, B any](tuples []Tuple2[A, B]) ([]A, []B)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Unzip2</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">](</span><span style="color:#393A34;">tuples </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple2</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#999999;">([]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/KBecr60feXb" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Unzip2</span><span style="color:#F6F6F4;">([]tuple.Tuple2[</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">]{{FieldA: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, FieldB: </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">}})</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [1] [0.1]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Unzip2</span><span style="color:#999999;">([]</span><span style="color:#393A34;">tuple</span><span style="color:#999999;">.</span><span style="color:#393A34;">Tuple2</span><span style="color:#999999;">[</span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float64</span><span style="color:#999999;">]{{</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldB</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">}})</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [1] [0.1]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple3" tabindex="-1"><span id="Tuple3">Tuple3</span> <a class="header-anchor" href="#Tuple3" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple3&quot;&gt;Tuple3&lt;/span&gt;&quot;">​</a></h3><p>Tuple3 represents a 3 elemnets tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">type</span><span style="color:#F6F6F4;"> </span><span style="color:#97E1F1;font-style:italic;">Tuple3</span><span style="color:#F6F6F4;">[A any, B any, C any] </span><span style="color:#F286C4;">struct</span><span style="color:#F6F6F4;"> {</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldA A</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldB B</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldC C</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> NewTuple3[A any, B any, C any](a A, b B c C) Tuple3[A, B, C]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">type</span><span style="color:#393A34;"> </span><span style="color:#2E8F82;">Tuple3</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">]</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">struct</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    FieldA A</span></span>
<span class="line"><span style="color:#393A34;">    FieldB B</span></span>
<span class="line"><span style="color:#393A34;">    FieldC C</span></span>
<span class="line"><span style="color:#999999;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> NewTuple3</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b B c C</span><span style="color:#999999;">)</span><span style="color:#393A34;"> Tuple3</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/FtH2sdCLlCf" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple3</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, t.FieldA, t.FieldB, t.FieldC)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple3</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldB</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldC</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple3-Unbox" tabindex="-1"><span id="Tuple3_Unbox">Tuple3_Unbox</span> <a class="header-anchor" href="#Tuple3-Unbox" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple3_Unbox&quot;&gt;Tuple3_Unbox&lt;/span&gt;&quot;">​</a></h3><p>Tuple3 Unbox returns values in tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> (t Tuple3[A, B, C]) </span><span style="color:#62E884;">Unbox</span><span style="color:#F6F6F4;">() (A, B, C)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">t Tuple3</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#59873A;">Unbox</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/YojLy-id1BS" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple3</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> t.</span><span style="color:#97E1F1;">Unbox</span><span style="color:#F6F6F4;">()</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple3</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#998418;">Unbox</span><span style="color:#999999;">()</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Zip3" tabindex="-1"><span id="Zip3">Zip3</span> <a class="header-anchor" href="#Zip3" aria-label="Permalink to &quot;&lt;span id=&quot;Zip3&quot;&gt;Zip3&lt;/span&gt;&quot;">​</a></h3><p>Create a slice of Tuple3, whose elements are correspond to the given slice elements.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Zip3[A any, B any, C any](a []A, b []B, c []C) []Tuple3[A, B, C]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Zip3</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a </span><span style="color:#999999;">[]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">)</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple3</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/97NgmsTILfu" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    result </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Zip3</span><span style="color:#F6F6F4;">([]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Println</span><span style="color:#F6F6F4;">(result)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [{1 0.1 a}]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">result</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Zip3</span><span style="color:#999999;">([]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float64</span><span style="color:#999999;">{</span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Println</span><span style="color:#999999;">(</span><span style="color:#393A34;">result</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [{1 0.1 a}]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Unzip3" tabindex="-1"><span id="Unzip3">Unzip3</span> <a class="header-anchor" href="#Unzip3" aria-label="Permalink to &quot;&lt;span id=&quot;Unzip3&quot;&gt;Unzip3&lt;/span&gt;&quot;">​</a></h3><p>Create a group of slice from a slice of Tuple3.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Unzip3[A any, B any, C any](tuples []Tuple3[A, B, C]) ([]A, []B, []C)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Unzip3</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">](</span><span style="color:#393A34;">tuples </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple3</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#999999;">([]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/bba4cpAa7KO" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Unzip3</span><span style="color:#F6F6F4;">([]tuple.Tuple3[</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">]{</span></span>
<span class="line"><span style="color:#F6F6F4;">        {FieldA: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, FieldB: </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, FieldC: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">},</span></span>
<span class="line"><span style="color:#F6F6F4;">    })</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [1] [0.1] [a]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Unzip3</span><span style="color:#999999;">([]</span><span style="color:#393A34;">tuple</span><span style="color:#999999;">.</span><span style="color:#393A34;">Tuple3</span><span style="color:#999999;">[</span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float64</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">]{</span></span>
<span class="line"><span style="color:#393A34;">        </span><span style="color:#999999;">{</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldB</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldC</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#999999;">})</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [1] [0.1] [a]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple4" tabindex="-1"><span id="Tuple4">Tuple4</span> <a class="header-anchor" href="#Tuple4" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple4&quot;&gt;Tuple4&lt;/span&gt;&quot;">​</a></h3><p>Tuple4 represents a 4 elemnets tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">type</span><span style="color:#F6F6F4;"> </span><span style="color:#97E1F1;font-style:italic;">Tuple4</span><span style="color:#F6F6F4;">[A any, B any, C any, D any] </span><span style="color:#F286C4;">struct</span><span style="color:#F6F6F4;"> {</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldA A</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldB B</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldC C</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldD D</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> NewTuple4[A any, B any, C any, D any](a A, b B, c C, d D) Tuple4[A, B, C, D]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">type</span><span style="color:#393A34;"> </span><span style="color:#2E8F82;">Tuple4</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">]</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">struct</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    FieldA A</span></span>
<span class="line"><span style="color:#393A34;">    FieldB B</span></span>
<span class="line"><span style="color:#393A34;">    FieldC C</span></span>
<span class="line"><span style="color:#393A34;">    FieldD D</span></span>
<span class="line"><span style="color:#999999;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> NewTuple4</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d D</span><span style="color:#999999;">)</span><span style="color:#393A34;"> Tuple4</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/D2EqDz096tk" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple4</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, t.FieldA, t.FieldB, t.FieldC, t.FieldD)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple4</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldB</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldC</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldD</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple4-Unbox" tabindex="-1"><span id="Tuple4_Unbox">Tuple4_Unbox</span> <a class="header-anchor" href="#Tuple4-Unbox" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple4_Unbox&quot;&gt;Tuple4_Unbox&lt;/span&gt;&quot;">​</a></h3><p>Tuple4 Unbox returns values in tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> (t Tuple4[A, B, C, D]) </span><span style="color:#62E884;">Unbox</span><span style="color:#F6F6F4;">() (A, B, C, D)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">t Tuple4</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#59873A;">Unbox</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/ACj9YuACGgW" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple4</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> t.</span><span style="color:#97E1F1;">Unbox</span><span style="color:#F6F6F4;">()</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple4</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#998418;">Unbox</span><span style="color:#999999;">()</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Zip4" tabindex="-1"><span id="Zip4">Zip4</span> <a class="header-anchor" href="#Zip4" aria-label="Permalink to &quot;&lt;span id=&quot;Zip4&quot;&gt;Zip4&lt;/span&gt;&quot;">​</a></h3><p>Create a slice of Tuple4, whose elements are correspond to the given slice elements.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Zip4[A any, B any, C any, D any](a []A, b []B, c []C, d []D) []Tuple4[A, B, C, D]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Zip4</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a </span><span style="color:#999999;">[]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">)</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple4</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/PEmTYVK5hL4" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    result </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Zip4</span><span style="color:#F6F6F4;">([]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Println</span><span style="color:#F6F6F4;">(result)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [{1 0.1 a true}]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">result</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Zip4</span><span style="color:#999999;">([]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float64</span><span style="color:#999999;">{</span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">bool</span><span style="color:#999999;">{</span><span style="color:#1E754F;">true</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Println</span><span style="color:#999999;">(</span><span style="color:#393A34;">result</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [{1 0.1 a true}]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Unzip4" tabindex="-1"><span id="Unzip4">Unzip4</span> <a class="header-anchor" href="#Unzip4" aria-label="Permalink to &quot;&lt;span id=&quot;Unzip4&quot;&gt;Unzip4&lt;/span&gt;&quot;">​</a></h3><p>Create a group of slice from a slice of Tuple4.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Unzip4[A any, B any, C any, D any](tuples []Tuple4[A, B, C, D]) ([]A, []B, []C, []D)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Unzip4</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">](</span><span style="color:#393A34;">tuples </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple4</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#999999;">([]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/rb8z4gyYSRN" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Unzip4</span><span style="color:#F6F6F4;">([]tuple.Tuple4[</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">]{</span></span>
<span class="line"><span style="color:#F6F6F4;">        {FieldA: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, FieldB: </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, FieldC: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldD: </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">},</span></span>
<span class="line"><span style="color:#F6F6F4;">    })</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [1] [0.1] [a] [true]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Unzip4</span><span style="color:#999999;">([]</span><span style="color:#393A34;">tuple</span><span style="color:#999999;">.</span><span style="color:#393A34;">Tuple4</span><span style="color:#999999;">[</span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float64</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">bool</span><span style="color:#999999;">]{</span></span>
<span class="line"><span style="color:#393A34;">        </span><span style="color:#999999;">{</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldB</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldC</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldD</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">},</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#999999;">})</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [1] [0.1] [a] [true]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple5" tabindex="-1"><span id="Tuple5">Tuple5</span> <a class="header-anchor" href="#Tuple5" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple5&quot;&gt;Tuple5&lt;/span&gt;&quot;">​</a></h3><p>Tuple5 represents a 5 elemnets tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">type</span><span style="color:#F6F6F4;"> </span><span style="color:#97E1F1;font-style:italic;">Tuple5</span><span style="color:#F6F6F4;">[A any, B any, C any, D any, E any] </span><span style="color:#F286C4;">struct</span><span style="color:#F6F6F4;"> {</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldA A</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldB B</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldC C</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldD D</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldE E</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> NewTuple5[A any, B any, C any, D any, E any](a A, b B, c C, d D, e E) Tuple5[A, B, C, D, E]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">type</span><span style="color:#393A34;"> </span><span style="color:#2E8F82;">Tuple5</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">]</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">struct</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    FieldA A</span></span>
<span class="line"><span style="color:#393A34;">    FieldB B</span></span>
<span class="line"><span style="color:#393A34;">    FieldC C</span></span>
<span class="line"><span style="color:#393A34;">    FieldD D</span></span>
<span class="line"><span style="color:#393A34;">    FieldE E</span></span>
<span class="line"><span style="color:#999999;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> NewTuple5</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e E</span><span style="color:#999999;">)</span><span style="color:#393A34;"> Tuple5</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/2WndmVxPg-r" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple5</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, t.FieldA, t.FieldB, t.FieldC, t.FieldD, t.FieldE)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple5</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldB</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldC</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldD</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldE</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple5-Unbox" tabindex="-1"><span id="Tuple5_Unbox">Tuple5_Unbox</span> <a class="header-anchor" href="#Tuple5-Unbox" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple5_Unbox&quot;&gt;Tuple5_Unbox&lt;/span&gt;&quot;">​</a></h3><p>Tuple5 Unbox returns values in tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> (t Tuple5[A, B, C, D, E]) </span><span style="color:#62E884;">Unbox</span><span style="color:#F6F6F4;">() (A, B, C, D, E)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">t Tuple5</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#59873A;">Unbox</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/GyIyZHjCvoS" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple5</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> t.</span><span style="color:#97E1F1;">Unbox</span><span style="color:#F6F6F4;">()</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple5</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#998418;">Unbox</span><span style="color:#999999;">()</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Zip5" tabindex="-1"><span id="Zip5">Zip5</span> <a class="header-anchor" href="#Zip5" aria-label="Permalink to &quot;&lt;span id=&quot;Zip5&quot;&gt;Zip5&lt;/span&gt;&quot;">​</a></h3><p>Create a slice of Tuple5, whose elements are correspond to the given slice elements.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Zip5[A any, B any, C any, D any, E any](a []A, b []B, c []C, d []D, e []E) []Tuple5[A, B, C, D, E]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Zip5</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a </span><span style="color:#999999;">[]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">)</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple5</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/fCAAJLMfBIP" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    result </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Zip5</span><span style="color:#F6F6F4;">([]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Println</span><span style="color:#F6F6F4;">(result)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [{1 0.1 a true 2}]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">result</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Zip5</span><span style="color:#999999;">([]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float64</span><span style="color:#999999;">{</span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">bool</span><span style="color:#999999;">{</span><span style="color:#1E754F;">true</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">2</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Println</span><span style="color:#999999;">(</span><span style="color:#393A34;">result</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [{1 0.1 a true 2}]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Unzip5" tabindex="-1"><span id="Unzip5">Unzip5</span> <a class="header-anchor" href="#Unzip5" aria-label="Permalink to &quot;&lt;span id=&quot;Unzip5&quot;&gt;Unzip5&lt;/span&gt;&quot;">​</a></h3><p>Create a group of slice from a slice of Tuple5.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Unzip5[A any, B any, C any, D any, E any](tuples []Tuple5[A, B, C, D, E]) ([]A, []B, []C, []D, []E)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Unzip5</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">](</span><span style="color:#393A34;">tuples </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple5</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#999999;">([]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/gyl6vKfhqPb" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Unzip5</span><span style="color:#F6F6F4;">([]tuple.Tuple5[</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">]{</span></span>
<span class="line"><span style="color:#F6F6F4;">        {FieldA: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, FieldB: </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, FieldC: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldD: </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, FieldE: </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">},</span></span>
<span class="line"><span style="color:#F6F6F4;">    })</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [1] [0.1] [a] [true] [2]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Unzip5</span><span style="color:#999999;">([]</span><span style="color:#393A34;">tuple</span><span style="color:#999999;">.</span><span style="color:#393A34;">Tuple5</span><span style="color:#999999;">[</span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float64</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">bool</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">int</span><span style="color:#999999;">]{</span></span>
<span class="line"><span style="color:#393A34;">        </span><span style="color:#999999;">{</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldB</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldC</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldD</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldE</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">},</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#999999;">})</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [1] [0.1] [a] [true] [2]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple6" tabindex="-1"><span id="Tuple6">Tuple6</span> <a class="header-anchor" href="#Tuple6" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple6&quot;&gt;Tuple6&lt;/span&gt;&quot;">​</a></h3><p>Tuple6 represents a 6 elemnets tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">type</span><span style="color:#F6F6F4;"> </span><span style="color:#97E1F1;font-style:italic;">Tuple6</span><span style="color:#F6F6F4;">[A any, B any, C any, D any, E any, F any] </span><span style="color:#F286C4;">struct</span><span style="color:#F6F6F4;"> {</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldA A</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldB B</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldC C</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldD D</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldE E</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldF F</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> NewTuple6[A any, B any, C any, D any, E any, F any](a A, b B, c C, d D, e E, f F) Tuple6[A, B, C, D, E, F]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">type</span><span style="color:#393A34;"> </span><span style="color:#2E8F82;">Tuple6</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">]</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">struct</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    FieldA A</span></span>
<span class="line"><span style="color:#393A34;">    FieldB B</span></span>
<span class="line"><span style="color:#393A34;">    FieldC C</span></span>
<span class="line"><span style="color:#393A34;">    FieldD D</span></span>
<span class="line"><span style="color:#393A34;">    FieldE E</span></span>
<span class="line"><span style="color:#393A34;">    FieldF F</span></span>
<span class="line"><span style="color:#999999;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> NewTuple6</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> f F</span><span style="color:#999999;">)</span><span style="color:#393A34;"> Tuple6</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/VjqcCwEJZbs" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple6</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, t.FieldA, t.FieldB, t.FieldC, t.FieldD, t.FieldE, t.FieldF)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2 2.2</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple6</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldB</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldC</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldD</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldE</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldF</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2 2.2</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple6-Unbox" tabindex="-1"><span id="Tuple6_Unbox">Tuple6_Unbox</span> <a class="header-anchor" href="#Tuple6-Unbox" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple6_Unbox&quot;&gt;Tuple6_Unbox&lt;/span&gt;&quot;">​</a></h3><p>Tuple6 Unbox returns values in tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> (t Tuple6[A, B, C, D, E, F]) </span><span style="color:#62E884;">Unbox</span><span style="color:#F6F6F4;">() (A, B, C, D, E, F)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">t Tuple6</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#59873A;">Unbox</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/FjIHV7lpxmW" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple6</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5, v6 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> t.</span><span style="color:#97E1F1;">Unbox</span><span style="color:#F6F6F4;">()</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5, v6)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2 2.2</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple6</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v6</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#998418;">Unbox</span><span style="color:#999999;">()</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v6</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2 2.2</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Zip6" tabindex="-1"><span id="Zip6">Zip6</span> <a class="header-anchor" href="#Zip6" aria-label="Permalink to &quot;&lt;span id=&quot;Zip6&quot;&gt;Zip6&lt;/span&gt;&quot;">​</a></h3><p>Create a slice of Tuple6, whose elements are correspond to the given slice elements.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Zip6[A any, B any, C any, D any, E any, F any](a []A, b []B, c []C, d []D, e []E, f []F) []Tuple6[A, B, C, D, E, F]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Zip6</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a </span><span style="color:#999999;">[]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> f </span><span style="color:#999999;">[]</span><span style="color:#393A34;">F</span><span style="color:#999999;">)</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple6</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/oWPrnUYuFHo" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    result </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Zip6</span><span style="color:#F6F6F4;">([]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float32</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Println</span><span style="color:#F6F6F4;">(result)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [{1 0.1 a true 2 2.2}]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">result</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Zip6</span><span style="color:#999999;">([]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float64</span><span style="color:#999999;">{</span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">bool</span><span style="color:#999999;">{</span><span style="color:#1E754F;">true</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">2</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float32</span><span style="color:#999999;">{</span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Println</span><span style="color:#999999;">(</span><span style="color:#393A34;">result</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [{1 0.1 a true 2 2.2}]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Unzip6" tabindex="-1"><span id="Unzip6">Unzip6</span> <a class="header-anchor" href="#Unzip6" aria-label="Permalink to &quot;&lt;span id=&quot;Unzip6&quot;&gt;Unzip6&lt;/span&gt;&quot;">​</a></h3><p>Create a group of slice from a slice of Tuple6.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Unzip6[A any, B any, C any, D any, E any, F any](tuples []Tuple6[A, B, C, D, E, F]) ([]A, []B, []C, []D, []E, []F)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Unzip6</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">](</span><span style="color:#393A34;">tuples </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple6</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#999999;">([]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">F</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/l41XFqCyh5E" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5, v6 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Unzip6</span><span style="color:#F6F6F4;">([]tuple.Tuple6[</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float32</span><span style="color:#F6F6F4;">]{</span></span>
<span class="line"><span style="color:#F6F6F4;">        {FieldA: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, FieldB: </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, FieldC: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldD: </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, FieldE: </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, FieldF: </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">},</span></span>
<span class="line"><span style="color:#F6F6F4;">    })</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5, v6)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [1] [0.1] [a] [true] [2] [2.2]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v6</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Unzip6</span><span style="color:#999999;">([]</span><span style="color:#393A34;">tuple</span><span style="color:#999999;">.</span><span style="color:#393A34;">Tuple6</span><span style="color:#999999;">[</span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float64</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">bool</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float32</span><span style="color:#999999;">]{</span></span>
<span class="line"><span style="color:#393A34;">        </span><span style="color:#999999;">{</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldB</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldC</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldD</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldE</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldF</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">},</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#999999;">})</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v6</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [1] [0.1] [a] [true] [2] [2.2]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple7" tabindex="-1"><span id="Tuple7">Tuple7</span> <a class="header-anchor" href="#Tuple7" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple7&quot;&gt;Tuple7&lt;/span&gt;&quot;">​</a></h3><p>Tuple7 represents a 7 elemnets tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">type</span><span style="color:#F6F6F4;"> </span><span style="color:#97E1F1;font-style:italic;">Tuple7</span><span style="color:#F6F6F4;">[A any, B any, C any, D any, E any, F any, G any] </span><span style="color:#F286C4;">struct</span><span style="color:#F6F6F4;"> {</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldA A</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldB B</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldC C</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldD D</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldE E</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldF F</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldG G</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> NewTuple7[A any, B any, C any, D any, E any, F any, G any](a A, b B, c C, d D, e E, f F, g G) Tuple7[A, B, C, D, E, F, G]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">type</span><span style="color:#393A34;"> </span><span style="color:#2E8F82;">Tuple7</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">]</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">struct</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    FieldA A</span></span>
<span class="line"><span style="color:#393A34;">    FieldB B</span></span>
<span class="line"><span style="color:#393A34;">    FieldC C</span></span>
<span class="line"><span style="color:#393A34;">    FieldD D</span></span>
<span class="line"><span style="color:#393A34;">    FieldE E</span></span>
<span class="line"><span style="color:#393A34;">    FieldF F</span></span>
<span class="line"><span style="color:#393A34;">    FieldG G</span></span>
<span class="line"><span style="color:#999999;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> NewTuple7</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> f F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> g G</span><span style="color:#999999;">)</span><span style="color:#393A34;"> Tuple7</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/dzAgv_Ezub9" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple7</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, t.FieldA, t.FieldB, t.FieldC, t.FieldD, t.FieldE, t.FieldF, t.FieldG)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2 2.2 b</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple7</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldB</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldC</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldD</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldE</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldF</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldG</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2 2.2 b</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple7-Unbox" tabindex="-1"><span id="Tuple7_Unbox">Tuple7_Unbox</span> <a class="header-anchor" href="#Tuple7-Unbox" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple7_Unbox&quot;&gt;Tuple7_Unbox&lt;/span&gt;&quot;">​</a></h3><p>Tuple7 Unbox returns values in tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> (t Tuple7[A, B, C, D, E, F, G]) </span><span style="color:#62E884;">Unbox</span><span style="color:#F6F6F4;">() (A, B, C, D, E, F, G)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">t Tuple7</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#59873A;">Unbox</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/R9I8qeDk0zs" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple7</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5, v6, v7 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> t.</span><span style="color:#97E1F1;">Unbox</span><span style="color:#F6F6F4;">()</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5, v6, v7)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2 2.2 b</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple7</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v7</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#998418;">Unbox</span><span style="color:#999999;">()</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v7</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2 2.2 b</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Zip7" tabindex="-1"><span id="Zip7">Zip7</span> <a class="header-anchor" href="#Zip7" aria-label="Permalink to &quot;&lt;span id=&quot;Zip7&quot;&gt;Zip7&lt;/span&gt;&quot;">​</a></h3><p>Create a slice of Tuple7, whose elements are correspond to the given slice elements.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Zip7[A any, B any, C any, D any, E any, F any, G any](a []A, b []B, c []C, d []D, e []E, f []F, g []G) []Tuple7[A, B, C, D, E, F, G]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Zip7</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a </span><span style="color:#999999;">[]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> f </span><span style="color:#999999;">[]</span><span style="color:#393A34;">F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> g </span><span style="color:#999999;">[]</span><span style="color:#393A34;">G</span><span style="color:#999999;">)</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple7</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/WUJuo897Egf" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    result </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Zip7</span><span style="color:#F6F6F4;">([]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float32</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Println</span><span style="color:#F6F6F4;">(result)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [{1 0.1 a true 2 2.2 b}]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">result</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Zip7</span><span style="color:#999999;">([]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float64</span><span style="color:#999999;">{</span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">bool</span><span style="color:#999999;">{</span><span style="color:#1E754F;">true</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">2</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float32</span><span style="color:#999999;">{</span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Println</span><span style="color:#999999;">(</span><span style="color:#393A34;">result</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [{1 0.1 a true 2 2.2 b}]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Unzip7" tabindex="-1"><span id="Unzip7">Unzip7</span> <a class="header-anchor" href="#Unzip7" aria-label="Permalink to &quot;&lt;span id=&quot;Unzip7&quot;&gt;Unzip7&lt;/span&gt;&quot;">​</a></h3><p>Create a group of slice from a slice of Tuple7.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Unzip7[A any, B any, C any, D any, E any, F any, G any](tuples []Tuple7[A, B, C, D, E, F, G]) ([]A, []B, []C, []D, []E, []F, []G)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Unzip7</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">](</span><span style="color:#393A34;">tuples </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple7</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#999999;">([]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">G</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/hws_P1Fr2j3" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5, v6, v7 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Unzip7</span><span style="color:#F6F6F4;">([]tuple.Tuple7[</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float32</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">]{</span></span>
<span class="line"><span style="color:#F6F6F4;">        {FieldA: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, FieldB: </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, FieldC: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldD: </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, FieldE: </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, FieldF: </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, FieldG: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">},</span></span>
<span class="line"><span style="color:#F6F6F4;">    })</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5, v6, v7)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [1] [0.1] [a] [true] [2] [2.2] [b]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v7</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Unzip7</span><span style="color:#999999;">([]</span><span style="color:#393A34;">tuple</span><span style="color:#999999;">.</span><span style="color:#393A34;">Tuple7</span><span style="color:#999999;">[</span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float64</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">bool</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float32</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">]{</span></span>
<span class="line"><span style="color:#393A34;">        </span><span style="color:#999999;">{</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldB</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldC</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldD</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldE</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldF</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldG</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#999999;">})</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v7</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [1] [0.1] [a] [true] [2] [2.2] [b]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple8" tabindex="-1"><span id="Tuple8">Tuple8</span> <a class="header-anchor" href="#Tuple8" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple8&quot;&gt;Tuple8&lt;/span&gt;&quot;">​</a></h3><p>Tuple8 represents a 8 elemnets tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">type</span><span style="color:#F6F6F4;"> </span><span style="color:#97E1F1;font-style:italic;">Tuple8</span><span style="color:#F6F6F4;">[A any, B any, C any, D any, E any, F any, G any, H any] </span><span style="color:#F286C4;">struct</span><span style="color:#F6F6F4;"> {</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldA A</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldB B</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldC C</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldD D</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldE E</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldF F</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldG G</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldH H</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> NewTuple8[A any, B any, C any, D any, E any, F any, G any, H any](a A, b B, c C, d D, e E, f F, g G, h H) Tuple8[A, B, C, D, E, F, G, H]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">type</span><span style="color:#393A34;"> </span><span style="color:#2E8F82;">Tuple8</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">]</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">struct</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    FieldA A</span></span>
<span class="line"><span style="color:#393A34;">    FieldB B</span></span>
<span class="line"><span style="color:#393A34;">    FieldC C</span></span>
<span class="line"><span style="color:#393A34;">    FieldD D</span></span>
<span class="line"><span style="color:#393A34;">    FieldE E</span></span>
<span class="line"><span style="color:#393A34;">    FieldF F</span></span>
<span class="line"><span style="color:#393A34;">    FieldG G</span></span>
<span class="line"><span style="color:#393A34;">    FieldH H</span></span>
<span class="line"><span style="color:#999999;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> NewTuple8</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> f F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> g G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> h H</span><span style="color:#999999;">)</span><span style="color:#393A34;"> Tuple8</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/YA9S0rz3dRz" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple8</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, t.FieldA, t.FieldB, t.FieldC, t.FieldD, t.FieldE, t.FieldF, t.FieldG, t.FieldH)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2 2.2 b c</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple8</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldB</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldC</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldD</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldE</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldF</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldG</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldH</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2 2.2 b c</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple8-Unbox" tabindex="-1"><span id="Tuple8_Unbox">Tuple8_Unbox</span> <a class="header-anchor" href="#Tuple8-Unbox" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple8_Unbox&quot;&gt;Tuple8_Unbox&lt;/span&gt;&quot;">​</a></h3><p>Tuple8 Unbox returns values in tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> (t Tuple8[A, B, C, D, E, F, G, H]) </span><span style="color:#62E884;">Unbox</span><span style="color:#F6F6F4;">() (A, B, C, D, E, F, G, H)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">t Tuple8</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#59873A;">Unbox</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/PRxLBBb4SMl" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple8</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">)</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5, v6, v7, v8 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> t.</span><span style="color:#97E1F1;">Unbox</span><span style="color:#F6F6F4;">()</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5, v6, v7, v8)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2 2.2 b c</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple8</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">)</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v8</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#998418;">Unbox</span><span style="color:#999999;">()</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v8</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2 2.2 b c</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Zip8" tabindex="-1"><span id="Zip8">Zip8</span> <a class="header-anchor" href="#Zip8" aria-label="Permalink to &quot;&lt;span id=&quot;Zip8&quot;&gt;Zip8&lt;/span&gt;&quot;">​</a></h3><p>Create a slice of Tuple8, whose elements are correspond to the given slice elements.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Zip8[A any, B any, C any, D any, E any, F any, G any, H any](a []A, b []B, c []C, d []D, e []E, f []F, g []G, h []H) []Tuple8[A, B, C, D, E, F, G, H]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Zip8</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a </span><span style="color:#999999;">[]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> f </span><span style="color:#999999;">[]</span><span style="color:#393A34;">F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> g </span><span style="color:#999999;">[]</span><span style="color:#393A34;">G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> h </span><span style="color:#999999;">[]</span><span style="color:#393A34;">H</span><span style="color:#999999;">)</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple8</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/8V9jWkuJfaQ" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    result </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Zip8</span><span style="color:#F6F6F4;">([]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float32</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Println</span><span style="color:#F6F6F4;">(result)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [{1 0.1 a true 2 2.2 b c}]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">result</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Zip8</span><span style="color:#999999;">([]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float64</span><span style="color:#999999;">{</span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">bool</span><span style="color:#999999;">{</span><span style="color:#1E754F;">true</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">2</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float32</span><span style="color:#999999;">{</span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Println</span><span style="color:#999999;">(</span><span style="color:#393A34;">result</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [{1 0.1 a true 2 2.2 b c}]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Unzip8" tabindex="-1"><span id="Unzip8">Unzip8</span> <a class="header-anchor" href="#Unzip8" aria-label="Permalink to &quot;&lt;span id=&quot;Unzip8&quot;&gt;Unzip8&lt;/span&gt;&quot;">​</a></h3><p>Create a group of slice from a slice of Tuple8.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Unzip8[A any, B any, C any, D any, E any, F any, G any, H any](tuples []Tuple8[A, B, C, D, E, F, G, H]) ([]A, []B, []C, []D, []E, []F, []G, []H)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Unzip8</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">](</span><span style="color:#393A34;">tuples </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple8</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#999999;">([]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">H</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/1SndOwGsZB4" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5, v6, v7, v8 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Unzip8</span><span style="color:#F6F6F4;">([]tuple.Tuple8[</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float32</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">]{</span></span>
<span class="line"><span style="color:#F6F6F4;">        {FieldA: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, FieldB: </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, FieldC: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldD: </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, FieldE: </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, FieldF: </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, FieldG: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldH: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">},</span></span>
<span class="line"><span style="color:#F6F6F4;">    })</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5, v6, v7, v8)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [1] [0.1] [a] [true] [2] [2.2] [b] [c]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v8</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Unzip8</span><span style="color:#999999;">([]</span><span style="color:#393A34;">tuple</span><span style="color:#999999;">.</span><span style="color:#393A34;">Tuple8</span><span style="color:#999999;">[</span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float64</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">bool</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float32</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">]{</span></span>
<span class="line"><span style="color:#393A34;">        </span><span style="color:#999999;">{</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldB</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldC</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldD</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldE</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldF</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldG</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldH</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#999999;">})</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v8</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [1] [0.1] [a] [true] [2] [2.2] [b] [c]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple9" tabindex="-1"><span id="Tuple9">Tuple9</span> <a class="header-anchor" href="#Tuple9" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple9&quot;&gt;Tuple9&lt;/span&gt;&quot;">​</a></h3><p>Tuple9 represents a 9 elemnets tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">type</span><span style="color:#F6F6F4;"> </span><span style="color:#97E1F1;font-style:italic;">Tuple9</span><span style="color:#F6F6F4;">[A any, B any, C any, D any, E any, F any, G any, H any, I any] </span><span style="color:#F286C4;">struct</span><span style="color:#F6F6F4;"> {</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldA A</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldB B</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldC C</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldD D</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldE E</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldF F</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldG G</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldH H</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldI I</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> NewTuple9[A any, B any, C any, D any, E any, F any, G any, H any, I any](a A, b B, c C, d D, e E, f F, g G, h H, i I) Tuple9[A, B, C, D, E, F, G, H, I]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">type</span><span style="color:#393A34;"> </span><span style="color:#2E8F82;">Tuple9</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I any</span><span style="color:#999999;">]</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">struct</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    FieldA A</span></span>
<span class="line"><span style="color:#393A34;">    FieldB B</span></span>
<span class="line"><span style="color:#393A34;">    FieldC C</span></span>
<span class="line"><span style="color:#393A34;">    FieldD D</span></span>
<span class="line"><span style="color:#393A34;">    FieldE E</span></span>
<span class="line"><span style="color:#393A34;">    FieldF F</span></span>
<span class="line"><span style="color:#393A34;">    FieldG G</span></span>
<span class="line"><span style="color:#393A34;">    FieldH H</span></span>
<span class="line"><span style="color:#393A34;">    FieldI I</span></span>
<span class="line"><span style="color:#999999;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> NewTuple9</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> f F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> g G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> h H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> i I</span><span style="color:#999999;">)</span><span style="color:#393A34;"> Tuple9</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/yS2NGGtZpQr" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple9</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#F286C4;">map</span><span style="color:#F6F6F4;">[</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, t.FieldA, t.FieldB, t.FieldC, t.FieldD, t.FieldE, t.FieldF, t.FieldG, t.FieldH, t.FieldI)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2 2.2 b c map[a:1]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple9</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">map</span><span style="color:#999999;">[</span><span style="color:#AB5959;">string</span><span style="color:#999999;">]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldB</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldC</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldD</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldE</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldF</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldG</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldH</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldI</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2 2.2 b c map[a:1]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple9-Unbox" tabindex="-1"><span id="Tuple9_Unbox">Tuple9_Unbox</span> <a class="header-anchor" href="#Tuple9-Unbox" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple9_Unbox&quot;&gt;Tuple9_Unbox&lt;/span&gt;&quot;">​</a></h3><p>Tuple9 Unbox returns values in tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> (t Tuple9[A, B, C, D, E, F, G, H, I]) </span><span style="color:#62E884;">Unbox</span><span style="color:#F6F6F4;">() (A, B, C, D, E, F, G, H, I)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">t Tuple9</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#59873A;">Unbox</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/oFJFGTAuOa8" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple9</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#F286C4;">map</span><span style="color:#F6F6F4;">[</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5, v6, v7, v8, v9 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> t.</span><span style="color:#97E1F1;">Unbox</span><span style="color:#F6F6F4;">()</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5, v6, v7, v8, v9)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2 2.2 b c map[a:1]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple9</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">map</span><span style="color:#999999;">[</span><span style="color:#AB5959;">string</span><span style="color:#999999;">]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v8</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v9</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#998418;">Unbox</span><span style="color:#999999;">()</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v8</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v9</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2 2.2 b c map[a:1]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Zip9" tabindex="-1"><span id="Zip9">Zip9</span> <a class="header-anchor" href="#Zip9" aria-label="Permalink to &quot;&lt;span id=&quot;Zip9&quot;&gt;Zip9&lt;/span&gt;&quot;">​</a></h3><p>Create a slice of Tuple9, whose elements are correspond to the given slice elements.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Zip9[A any, B any, C any, D any, E any, F any, G any, H any, I any](a []A, b []B, c []C, d []D, e []E, f []F, g []G, h []H, i []I) []Tuple9[A, B, C, D, E, F, G, H, I]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Zip9</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a </span><span style="color:#999999;">[]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> f </span><span style="color:#999999;">[]</span><span style="color:#393A34;">F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> g </span><span style="color:#999999;">[]</span><span style="color:#393A34;">G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> h </span><span style="color:#999999;">[]</span><span style="color:#393A34;">H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> i </span><span style="color:#999999;">[]</span><span style="color:#393A34;">I</span><span style="color:#999999;">)</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple9</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/cgsL15QYnfz" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    result </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Zip9</span><span style="color:#F6F6F4;">([]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float32</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">int64</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">3</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Println</span><span style="color:#F6F6F4;">(result)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [{1 0.1 a true 2 2.2 b c 3}]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">result</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Zip9</span><span style="color:#999999;">([]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float64</span><span style="color:#999999;">{</span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">bool</span><span style="color:#999999;">{</span><span style="color:#1E754F;">true</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">2</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float32</span><span style="color:#999999;">{</span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">int64</span><span style="color:#999999;">{</span><span style="color:#2F798A;">3</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Println</span><span style="color:#999999;">(</span><span style="color:#393A34;">result</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [{1 0.1 a true 2 2.2 b c 3}]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Unzip9" tabindex="-1"><span id="Unzip9">Unzip9</span> <a class="header-anchor" href="#Unzip9" aria-label="Permalink to &quot;&lt;span id=&quot;Unzip9&quot;&gt;Unzip9&lt;/span&gt;&quot;">​</a></h3><p>Create a group of slice from a slice of Tuple9.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Unzip9[A any, B any, C any, D any, E any, F any, G any, H any, I any](tuples []Tuple9[A, B, C, D, E, F, G, H, I]) ([]A, []B, []C, []D, []E, []F, []G, []H, []I)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Unzip9</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I any</span><span style="color:#999999;">](</span><span style="color:#393A34;">tuples </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple9</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#999999;">([]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">I</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/91-BU_KURSA" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5, v6, v7, v8, v9 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Unzip9</span><span style="color:#F6F6F4;">([]tuple.Tuple9[</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float32</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">int64</span><span style="color:#F6F6F4;">]{</span></span>
<span class="line"><span style="color:#F6F6F4;">        {FieldA: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, FieldB: </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, FieldC: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldD: </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, FieldE: </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, FieldF: </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, FieldG: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldH: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldI: </span><span style="color:#BF9EEE;">3</span><span style="color:#F6F6F4;">},</span></span>
<span class="line"><span style="color:#F6F6F4;">    })</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5, v6, v7, v8, v9)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [1] [0.1] [a] [true] [2] [2.2] [b] [c] [3]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v8</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v9</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Unzip9</span><span style="color:#999999;">([]</span><span style="color:#393A34;">tuple</span><span style="color:#999999;">.</span><span style="color:#393A34;">Tuple9</span><span style="color:#999999;">[</span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float64</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">bool</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float32</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">int64</span><span style="color:#999999;">]{</span></span>
<span class="line"><span style="color:#393A34;">        </span><span style="color:#999999;">{</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldB</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldC</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldD</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldE</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldF</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldG</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldH</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldI</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">3</span><span style="color:#999999;">},</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#999999;">})</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v8</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v9</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [1] [0.1] [a] [true] [2] [2.2] [b] [c] [3]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple10" tabindex="-1"><span id="Tuple10">Tuple10</span> <a class="header-anchor" href="#Tuple10" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple10&quot;&gt;Tuple10&lt;/span&gt;&quot;">​</a></h3><p>Tuple10 represents a 10 elemnets tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">type</span><span style="color:#F6F6F4;"> </span><span style="color:#97E1F1;font-style:italic;">Tuple10</span><span style="color:#F6F6F4;">[A any, B any, C any, D any, E any, F any, G any, H any, I any, J any] </span><span style="color:#F286C4;">struct</span><span style="color:#F6F6F4;"> {</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldA A</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldB B</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldC C</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldD D</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldE E</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldF F</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldG G</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldH H</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldI I</span></span>
<span class="line"><span style="color:#F6F6F4;">    FieldJ J</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> NewTuple10[A any, B any, C any, D any, E any, F any, G any, H any, I any, J any](a A, b B, c C, d D, e E, f F, g G, h H, i I, j J) Tuple10[A, B, C, D, E, F, G, H, I, J]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">type</span><span style="color:#393A34;"> </span><span style="color:#2E8F82;">Tuple10</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> J any</span><span style="color:#999999;">]</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">struct</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    FieldA A</span></span>
<span class="line"><span style="color:#393A34;">    FieldB B</span></span>
<span class="line"><span style="color:#393A34;">    FieldC C</span></span>
<span class="line"><span style="color:#393A34;">    FieldD D</span></span>
<span class="line"><span style="color:#393A34;">    FieldE E</span></span>
<span class="line"><span style="color:#393A34;">    FieldF F</span></span>
<span class="line"><span style="color:#393A34;">    FieldG G</span></span>
<span class="line"><span style="color:#393A34;">    FieldH H</span></span>
<span class="line"><span style="color:#393A34;">    FieldI I</span></span>
<span class="line"><span style="color:#393A34;">    FieldJ J</span></span>
<span class="line"><span style="color:#999999;">}</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> NewTuple10</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> J any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> f F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> g G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> h H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> i I</span><span style="color:#999999;">,</span><span style="color:#393A34;"> j J</span><span style="color:#999999;">)</span><span style="color:#393A34;"> Tuple10</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I</span><span style="color:#999999;">,</span><span style="color:#393A34;"> J</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/799qqZg0hUv" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#F286C4;">type</span><span style="color:#F6F6F4;"> </span><span style="color:#97E1F1;font-style:italic;">foo</span><span style="color:#F6F6F4;"> </span><span style="color:#F286C4;">struct</span><span style="color:#F6F6F4;"> {</span></span>
<span class="line"><span style="color:#F6F6F4;">        A </span><span style="color:#97E1F1;font-style:italic;">string</span></span>
<span class="line"><span style="color:#F6F6F4;">    }</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple10</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#F286C4;">map</span><span style="color:#F6F6F4;">[</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">}, foo{A: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, t.FieldA, t.FieldB, t.FieldC, t.FieldD, t.FieldE, t.FieldF, t.FieldG, t.FieldH, t.FieldI, t.FieldJ)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2 2.2 b c map[a:1] {a}</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#1E754F;">type</span><span style="color:#393A34;"> </span><span style="color:#2E8F82;">foo</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">struct</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">        A </span><span style="color:#AB5959;">string</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#999999;">}</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple10</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">map</span><span style="color:#999999;">[</span><span style="color:#AB5959;">string</span><span style="color:#999999;">]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> foo</span><span style="color:#999999;">{</span><span style="color:#393A34;">A</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldB</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldC</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldD</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldE</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldF</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldG</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldH</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldI</span><span style="color:#999999;">,</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#393A34;">FieldJ</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2 2.2 b c map[a:1] {a}</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Tuple10-Unbox" tabindex="-1"><span id="Tuple10_Unbox">Tuple10_Unbox</span> <a class="header-anchor" href="#Tuple10-Unbox" aria-label="Permalink to &quot;&lt;span id=&quot;Tuple10_Unbox&quot;&gt;Tuple10_Unbox&lt;/span&gt;&quot;">​</a></h3><p>Tuple10 Unbox returns values in tuple.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> (t Tuple10[A, B, C, D, E, F, G, H, I, J]) </span><span style="color:#62E884;">Unbox</span><span style="color:#F6F6F4;">() (A, B, C, D, E, F, G, H, I, J)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">t Tuple10</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I</span><span style="color:#999999;">,</span><span style="color:#393A34;"> J</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#59873A;">Unbox</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I</span><span style="color:#999999;">,</span><span style="color:#393A34;"> J</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/qfyx3x_X0Cu" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#F286C4;">type</span><span style="color:#F6F6F4;"> </span><span style="color:#97E1F1;font-style:italic;">foo</span><span style="color:#F6F6F4;"> </span><span style="color:#F286C4;">struct</span><span style="color:#F6F6F4;"> {</span></span>
<span class="line"><span style="color:#F6F6F4;">        A </span><span style="color:#97E1F1;font-style:italic;">string</span></span>
<span class="line"><span style="color:#F6F6F4;">    }</span></span>
<span class="line"><span style="color:#F6F6F4;">    t </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">NewTuple10</span><span style="color:#F6F6F4;">(</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, </span><span style="color:#F286C4;">map</span><span style="color:#F6F6F4;">[</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">}, foo{A: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5, v6, v7, v8, v9, v10 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> t.</span><span style="color:#97E1F1;">Unbox</span><span style="color:#F6F6F4;">()</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: 1 0.1 a true 2 2.2 b c map[a:1] {a}</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#1E754F;">type</span><span style="color:#393A34;"> </span><span style="color:#2E8F82;">foo</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">struct</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">        A </span><span style="color:#AB5959;">string</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#999999;">}</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">t</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">NewTuple10</span><span style="color:#999999;">(</span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">map</span><span style="color:#999999;">[</span><span style="color:#AB5959;">string</span><span style="color:#999999;">]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> foo</span><span style="color:#999999;">{</span><span style="color:#393A34;">A</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v8</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v9</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v10</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> t</span><span style="color:#999999;">.</span><span style="color:#998418;">Unbox</span><span style="color:#999999;">()</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v8</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v9</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v10</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: 1 0.1 a true 2 2.2 b c map[a:1] {a}</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Zip10" tabindex="-1"><span id="Zip10">Zip10</span> <a class="header-anchor" href="#Zip10" aria-label="Permalink to &quot;&lt;span id=&quot;Zip10&quot;&gt;Zip10&lt;/span&gt;&quot;">​</a></h3><p>Create a slice of Tuple10, whose elements are correspond to the given slice elements.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Zip10[A any, B any, C any, D any, E any, F any, G any, H any, I any, J any](a []A, b []B, c []C, d []D, e []E, f []F, g []G, h []H, i []I, j []J) []Tuple10[A, B, C, D, E, F, G, H, I, J]</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Zip10</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> J any</span><span style="color:#999999;">](</span><span style="color:#393A34;">a </span><span style="color:#999999;">[]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> b </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> c </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> d </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> e </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> f </span><span style="color:#999999;">[]</span><span style="color:#393A34;">F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> g </span><span style="color:#999999;">[]</span><span style="color:#393A34;">G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> h </span><span style="color:#999999;">[]</span><span style="color:#393A34;">H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> i </span><span style="color:#999999;">[]</span><span style="color:#393A34;">I</span><span style="color:#999999;">,</span><span style="color:#393A34;"> j </span><span style="color:#999999;">[]</span><span style="color:#393A34;">J</span><span style="color:#999999;">)</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple10</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I</span><span style="color:#999999;">,</span><span style="color:#393A34;"> J</span><span style="color:#999999;">]</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/YSR-2cXnrY4" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    result </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Zip10</span><span style="color:#F6F6F4;">([]</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">float32</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">{</span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">int64</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">3</span><span style="color:#F6F6F4;">}, []</span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">{</span><span style="color:#BF9EEE;">false</span><span style="color:#F6F6F4;">})</span></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Println</span><span style="color:#F6F6F4;">(result)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [{1 0.1 a true 2 2.2 b c 3 false}]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">result</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Zip10</span><span style="color:#999999;">([]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float64</span><span style="color:#999999;">{</span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">bool</span><span style="color:#999999;">{</span><span style="color:#1E754F;">true</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">int</span><span style="color:#999999;">{</span><span style="color:#2F798A;">2</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">float32</span><span style="color:#999999;">{</span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">string</span><span style="color:#999999;">{</span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">int64</span><span style="color:#999999;">{</span><span style="color:#2F798A;">3</span><span style="color:#999999;">},</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#AB5959;">bool</span><span style="color:#999999;">{</span><span style="color:#1E754F;">false</span><span style="color:#999999;">})</span></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Println</span><span style="color:#999999;">(</span><span style="color:#393A34;">result</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [{1 0.1 a true 2 2.2 b c 3 false}]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div><h3 id="Unzip10" tabindex="-1"><span id="Unzip10">Unzip10</span> <a class="header-anchor" href="#Unzip10" aria-label="Permalink to &quot;&lt;span id=&quot;Unzip10&quot;&gt;Unzip10&lt;/span&gt;&quot;">​</a></h3><p>Create a group of slice from a slice of Tuple10.</p><p><b>Signature:</b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> Unzip10[A any, B any, C any, D any, E any, F any, G any, H any, I any, J any](tuples []Tuple10[A, B, C, D, E, F, G, H, I, J]) ([]A, []B, []C, []D, []E, []F, []G, []H, []I, []J)</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> Unzip10</span><span style="color:#999999;">[</span><span style="color:#393A34;">A any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I any</span><span style="color:#999999;">,</span><span style="color:#393A34;"> J any</span><span style="color:#999999;">](</span><span style="color:#393A34;">tuples </span><span style="color:#999999;">[]</span><span style="color:#393A34;">Tuple10</span><span style="color:#999999;">[</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> I</span><span style="color:#999999;">,</span><span style="color:#393A34;"> J</span><span style="color:#999999;">])</span><span style="color:#393A34;"> </span><span style="color:#999999;">([]</span><span style="color:#393A34;">A</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">B</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">C</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">D</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">E</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">F</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">G</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">H</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">I</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#999999;">[]</span><span style="color:#393A34;">J</span><span style="color:#999999;">)</span></span></code></pre></div><p><b>Example:<span style="float:right;display:inline-block;"><a href="https://go.dev/play/p/-taQB6Wfre_z" target="_blank" rel="noreferrer">Run</a></span></b></p><div class="language-go vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">go</span><pre class="shiki dracula-soft vp-code-dark"><code><span class="line"><span style="color:#F286C4;">package</span><span style="color:#F6F6F4;"> main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">import</span><span style="color:#F6F6F4;"> (</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">fmt</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#DEE492;">&quot;</span></span>
<span class="line"><span style="color:#F6F6F4;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F286C4;">func</span><span style="color:#F6F6F4;"> </span><span style="color:#62E884;">main</span><span style="color:#F6F6F4;">() {</span></span>
<span class="line"><span style="color:#F6F6F4;">    v1, v2, v3, v4, v5, v6, v7, v8, v9, v10 </span><span style="color:#F286C4;">:=</span><span style="color:#F6F6F4;"> tuple.</span><span style="color:#97E1F1;">Unzip10</span><span style="color:#F6F6F4;">([]tuple.Tuple10[</span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float64</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">int</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">float32</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">string</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">int64</span><span style="color:#F6F6F4;">, </span><span style="color:#97E1F1;font-style:italic;">bool</span><span style="color:#F6F6F4;">]{</span></span>
<span class="line"><span style="color:#F6F6F4;">        {FieldA: </span><span style="color:#BF9EEE;">1</span><span style="color:#F6F6F4;">, FieldB: </span><span style="color:#BF9EEE;">0.1</span><span style="color:#F6F6F4;">, FieldC: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">a</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldD: </span><span style="color:#BF9EEE;">true</span><span style="color:#F6F6F4;">, FieldE: </span><span style="color:#BF9EEE;">2</span><span style="color:#F6F6F4;">, FieldF: </span><span style="color:#BF9EEE;">2.2</span><span style="color:#F6F6F4;">, FieldG: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">b</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldH: </span><span style="color:#DEE492;">&quot;</span><span style="color:#E7EE98;">c</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, FieldI: </span><span style="color:#BF9EEE;">3</span><span style="color:#F6F6F4;">, FieldJ: </span><span style="color:#BF9EEE;">false</span><span style="color:#F6F6F4;">},</span></span>
<span class="line"><span style="color:#F6F6F4;">    })</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    fmt.</span><span style="color:#97E1F1;">Printf</span><span style="color:#F6F6F4;">(</span><span style="color:#DEE492;">&quot;</span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#E7EE98;"> </span><span style="color:#BF9EEE;">%v</span><span style="color:#DEE492;">&quot;</span><span style="color:#F6F6F4;">, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#F6F6F4;">    </span><span style="color:#7B7F8B;">// Output: [1] [0.1] [a] [true] [2] [2.2] [b] [c] [3] [false]</span></span>
<span class="line"><span style="color:#F6F6F4;">}</span></span></code></pre><pre class="shiki vitesse-light vp-code-light"><code><span class="line"><span style="color:#1E754F;">package</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">import</span><span style="color:#393A34;"> </span><span style="color:#999999;">(</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">fmt</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B5695999;">&quot;</span><span style="color:#59873A;">github.com/duke-git/lancet/v2/tuple</span><span style="color:#B5695999;">&quot;</span></span>
<span class="line"><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#1E754F;">func</span><span style="color:#393A34;"> </span><span style="color:#59873A;">main</span><span style="color:#999999;">()</span><span style="color:#393A34;"> </span><span style="color:#999999;">{</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#B07D48;">v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v8</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v9</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#B07D48;">v10</span><span style="color:#393A34;"> </span><span style="color:#999999;">:=</span><span style="color:#393A34;"> tuple</span><span style="color:#999999;">.</span><span style="color:#998418;">Unzip10</span><span style="color:#999999;">([]</span><span style="color:#393A34;">tuple</span><span style="color:#999999;">.</span><span style="color:#393A34;">Tuple10</span><span style="color:#999999;">[</span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float64</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">bool</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">int</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">float32</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">string</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">int64</span><span style="color:#999999;">,</span><span style="color:#393A34;"> </span><span style="color:#AB5959;">bool</span><span style="color:#999999;">]{</span></span>
<span class="line"><span style="color:#393A34;">        </span><span style="color:#999999;">{</span><span style="color:#393A34;">FieldA</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldB</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">0.1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldC</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">a</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldD</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">true</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldE</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldF</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">2.2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldG</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">b</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldH</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#B5695999;">&quot;</span><span style="color:#B56959;">c</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldI</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#2F798A;">3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> FieldJ</span><span style="color:#999999;">:</span><span style="color:#393A34;"> </span><span style="color:#1E754F;">false</span><span style="color:#999999;">},</span></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#999999;">})</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    fmt</span><span style="color:#999999;">.</span><span style="color:#998418;">Printf</span><span style="color:#999999;">(</span><span style="color:#B5695999;">&quot;</span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B56959;"> </span><span style="color:#A65E2B;">%v</span><span style="color:#B5695999;">&quot;</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v1</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v2</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v3</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v4</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v5</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v6</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v7</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v8</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v9</span><span style="color:#999999;">,</span><span style="color:#393A34;"> v10</span><span style="color:#999999;">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#393A34;">    </span><span style="color:#A0ADA0;">// Output: [1] [0.1] [a] [true] [2] [2.2] [b] [c] [3] [false]</span></span>
<span class="line"><span style="color:#999999;">}</span></span></code></pre></div>`,217),v=[t,c,r,y,F,i,E,A,u,B,d];function g(f,h,q,b,D,m){return p(),o("div",null,v)}const T=l(e,[["render",g]]);export{k as __pageData,T as default};
