<spanid="cpl-query-extension-iterable-abc"></span><h2>cpl_query.extension.iterable_abc<aclass="headerlink"href="#module-cpl_query.extension.iterable_abc"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">cpl_query.extension.iterable_abc.</span></code><codeclass="sig-name descname"><spanclass="pre">IterableABC</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">t</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">type</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">values</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">list</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">all</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">bool</span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.all"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">any</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">bool</span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.any"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">append</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_IterableABC__object</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">object</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.append"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">average</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.average"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">contains</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">value</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">object</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">bool</span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.contains"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">count</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">int</span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.count"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">distinct</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.distinct"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">element_at</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC.any"title="cpl_query.extension.iterable_abc.IterableABC.any"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC.any</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.element_at"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">element_at_or_default</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC.any"title="cpl_query.extension.iterable_abc.IterableABC.any"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC.any</span></a><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.element_at_or_default"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">extend</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_IterableABC__iterable</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Iterable</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.extend"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">first</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC.any"title="cpl_query.extension.iterable_abc.IterableABC.any"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC.any</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.first"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">first_or_default</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC.any"title="cpl_query.extension.iterable_abc.IterableABC.any"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC.any</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.first_or_default"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">for_each</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.for_each"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">last</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC.any"title="cpl_query.extension.iterable_abc.IterableABC.any"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC.any</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.last"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">last_or_default</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC.any"title="cpl_query.extension.iterable_abc.IterableABC.any"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC.any</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.last_or_default"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">max</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.max"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">min</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.min"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">order_by</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.order_by"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">order_by_descending</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.order_by_descending"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">reverse</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.reverse"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">single</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC.any"title="cpl_query.extension.iterable_abc.IterableABC.any"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC.any</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.single"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">single_or_default</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC.any"title="cpl_query.extension.iterable_abc.IterableABC.any"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC.any</span></a><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.single_or_default"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">skip</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.skip"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">skip_last</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.skip_last"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">sum</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.sum"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">take</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.take"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">take_last</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.take_last"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">to_list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">list</span><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.to_list"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><codeclass="sig-name descname"><spanclass="pre">type</span></code><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.type"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">where</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable_abc.IterableABC.where"title="Permalink to this definition">¶</a></dt>
<spanid="cpl-query-extension-iterable"></span><h2>cpl_query.extension.iterable<aclass="headerlink"href="#module-cpl_query.extension.iterable"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">cpl_query.extension.iterable.</span></code><codeclass="sig-name descname"><spanclass="pre">Iterable</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">t</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">type</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">values</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">list</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">all</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">bool</span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.all"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">any</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">bool</span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.any"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">average</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.average"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">contains</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">value</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">object</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">bool</span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.contains"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">count</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">int</span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.count"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">distinct</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.distinct"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">element_at</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable.Iterable.any"title="cpl_query.extension.iterable.Iterable.any"><spanclass="pre">cpl_query.extension.iterable.Iterable.any</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.element_at"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">element_at_or_default</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal"href="#cpl_query.extension.iterable.Iterable.any"title="cpl_query.extension.iterable.Iterable.any"><spanclass="pre">cpl_query.extension.iterable.Iterable.any</span></a><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.element_at_or_default"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">first</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable.Iterable.any"title="cpl_query.extension.iterable.Iterable.any"><spanclass="pre">cpl_query.extension.iterable.Iterable.any</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.first"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">first_or_default</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal"href="#cpl_query.extension.iterable.Iterable.any"title="cpl_query.extension.iterable.Iterable.any"><spanclass="pre">cpl_query.extension.iterable.Iterable.any</span></a><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.first_or_default"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">for_each</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.for_each"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">last</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable.Iterable.any"title="cpl_query.extension.iterable.Iterable.any"><spanclass="pre">cpl_query.extension.iterable.Iterable.any</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.last"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">last_or_default</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal"href="#cpl_query.extension.iterable.Iterable.any"title="cpl_query.extension.iterable.Iterable.any"><spanclass="pre">cpl_query.extension.iterable.Iterable.any</span></a><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.last_or_default"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">max</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.max"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">min</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.min"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">order_by</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"title="cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"><spanclass="pre">cpl_query.extension.ordered_iterable_abc.OrderedIterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.order_by"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">order_by_descending</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"title="cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"><spanclass="pre">cpl_query.extension.ordered_iterable_abc.OrderedIterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.order_by_descending"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">reverse</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.reverse"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">single</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable.Iterable.any"title="cpl_query.extension.iterable.Iterable.any"><spanclass="pre">cpl_query.extension.iterable.Iterable.any</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.single"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">single_or_default</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><aclass="reference internal"href="#cpl_query.extension.iterable.Iterable.any"title="cpl_query.extension.iterable.Iterable.any"><spanclass="pre">cpl_query.extension.iterable.Iterable.any</span></a><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.single_or_default"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">skip</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.skip"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">skip_last</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.skip_last"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">sum</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">int</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">float</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">complex</span><spanclass="p"><spanclass="pre">]</span></span><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.sum"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">take</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.take"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">take_last</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.take_last"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">where</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.iterable_abc.IterableABC"title="cpl_query.extension.iterable_abc.IterableABC"><spanclass="pre">cpl_query.extension.iterable_abc.IterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.iterable.Iterable.where"title="Permalink to this definition">¶</a></dt>
<spanid="cpl-query-extension-list"></span><h2>cpl_query.extension.list<aclass="headerlink"href="#module-cpl_query.extension.list"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">cpl_query.extension.list.</span></code><codeclass="sig-name descname"><spanclass="pre">List</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">t</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">type</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">values</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">list</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.extension.list.List"title="Permalink to this definition">¶</a></dt>
<spanid="cpl-query-extension-ordered-iterable-abc"></span><h2>cpl_query.extension.ordered_iterable_abc<aclass="headerlink"href="#module-cpl_query.extension.ordered_iterable_abc"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">cpl_query.extension.ordered_iterable_abc.</span></code><codeclass="sig-name descname"><spanclass="pre">OrderedIterableABC</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_t</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">type</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">collections.abc.Callable</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">then_by</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">collections.abc.Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"title="cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"><spanclass="pre">cpl_query.extension.ordered_iterable_abc.OrderedIterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.ordered_iterable_abc.OrderedIterableABC.then_by"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><codeclass="sig-name descname"><spanclass="pre">then_by_descending</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">collections.abc.Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"title="cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"><spanclass="pre">cpl_query.extension.ordered_iterable_abc.OrderedIterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.ordered_iterable_abc.OrderedIterableABC.then_by_descending"title="Permalink to this definition">¶</a></dt>
<spanid="cpl-query-extension-ordered-iterable"></span><h2>cpl_query.extension.ordered_iterable<aclass="headerlink"href="#module-cpl_query.extension.ordered_iterable"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">cpl_query.extension.ordered_iterable.</span></code><codeclass="sig-name descname"><spanclass="pre">OrderedIterable</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_t</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">type</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#cpl_query.extension.ordered_iterable.OrderedIterable"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">then_by</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">collections.abc.Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"title="cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"><spanclass="pre">cpl_query.extension.ordered_iterable_abc.OrderedIterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.ordered_iterable.OrderedIterable.then_by"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">then_by_descending</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">_func</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">collections.abc.Callable</span></span></em><spanclass="sig-paren">)</span>→<aclass="reference internal"href="#cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"title="cpl_query.extension.ordered_iterable_abc.OrderedIterableABC"><spanclass="pre">cpl_query.extension.ordered_iterable_abc.OrderedIterableABC</span></a><aclass="headerlink"href="#cpl_query.extension.ordered_iterable.OrderedIterable.then_by_descending"title="Permalink to this definition">¶</a></dt>