Browse Source

Inline

pull/177/head
Jure Šorn 9 months ago
parent
commit
b1a5e497e5
2 changed files with 4 additions and 4 deletions
  1. 2
      README.md
  2. 6
      index.html

2
README.md

@ -782,7 +782,7 @@ from functools import reduce
### Any, All
```python
<bool> = any(<collection>) # Is `bool(<el>)` True for any el?
<bool> = all(<collection>) # Is True for all or is it empty?
<bool> = all(<collection>) # True for all? Also True if empty.
```
### Conditional Expression

6
index.html

@ -54,7 +54,7 @@
<body>
<header>
<aside>February 20, 2024</aside>
<aside>February 21, 2024</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</header>
@ -663,7 +663,7 @@ func(*args, **kwargs)
&lt;obj&gt; = reduce(<span class="hljs-keyword">lambda</span> out, x: out + x, range(<span class="hljs-number">10</span>)) <span class="hljs-comment"># Or: 45</span>
</code></pre>
<div><h3 id="anyall">Any, All</h3><pre><code class="python language-python hljs">&lt;bool&gt; = any(&lt;collection&gt;) <span class="hljs-comment"># Is `bool(&lt;el&gt;)` True for any el?</span>
&lt;bool&gt; = all(&lt;collection&gt;) <span class="hljs-comment"># Is True for all or is it empty?</span>
&lt;bool&gt; = all(&lt;collection&gt;) <span class="hljs-comment"># True for all? Also True if empty.</span>
</code></pre></div>
<div><h3 id="conditionalexpression">Conditional Expression</h3><pre><code class="python language-python hljs">&lt;obj&gt; = &lt;exp&gt; <span class="hljs-keyword">if</span> &lt;condition&gt; <span class="hljs-keyword">else</span> &lt;exp&gt; <span class="hljs-comment"># Only one expression is evaluated.</span>
@ -2933,7 +2933,7 @@ $ deactivate <span class="hljs-comment"># Deactivates the activ
<footer>
<aside>February 20, 2024</aside>
<aside>February 21, 2024</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</footer>

Loading…
Cancel
Save